summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2021-07-20 00:01:49 +0300
committerAvi Halachmi (:avih) <avihpit@yahoo.com>2021-07-20 00:13:35 +0300
commitfab25ac004be0de84d5f70f16499a73ae14b0f6d (patch)
tree388d1fdc12995ae51c48ff4ac99d98fe2b216710 /player
parent0c6ea0c0b0bac3481b11736898524ac44595e2d6 (diff)
downloadmpv-fab25ac004be0de84d5f70f16499a73ae14b0f6d.tar.bz2
mpv-fab25ac004be0de84d5f70f16499a73ae14b0f6d.tar.xz
stats.lua: page 4 (keys): fix "excluding stats keys"
The page 4 keybinding list tries to skip the interactive bindings of stats itself (because they would hide the normal bindings of these keys when stats is not visible), and to do that it excludes commands containing "script-binding stats/__key" - which is how script-added bindings usually look like. However, keys which are added with a "name" bind stats/name rather than stats/__key... - and that's what stats.lua did till now with its interactive force-bindings. Now the interactive forced bindings are added without a name, and so they do end up using the automatic stats/__key... and get excluded.
Diffstat (limited to 'player')
-rw-r--r--player/lua/stats.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua
index 1d629e08ad..50371aa3a8 100644
--- a/player/lua/stats.lua
+++ b/player/lua/stats.lua
@@ -1020,8 +1020,8 @@ local function reset_scroll_offsets()
end
local function bind_scroll()
if not scroll_bound then
- mp.add_forced_key_binding(o.key_scroll_up, o.key_scroll_up, scroll_up, {repeatable=true})
- mp.add_forced_key_binding(o.key_scroll_down, o.key_scroll_down, scroll_down, {repeatable=true})
+ mp.add_forced_key_binding(o.key_scroll_up, nil, scroll_up, {repeatable=true})
+ mp.add_forced_key_binding(o.key_scroll_down, nil, scroll_down, {repeatable=true})
scroll_bound = true
end
end
@@ -1052,7 +1052,7 @@ local function add_page_bindings()
end
end
for k, _ in pairs(pages) do
- mp.add_forced_key_binding(k, k, a(k), {repeatable=true})
+ mp.add_forced_key_binding(k, nil, a(k), {repeatable=true})
end
update_scroll_bindings(curr_page)
end