mirror of
https://github.com/mpv-player/mpv
synced 2025-02-03 05:31:34 +00:00
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.
This commit is contained in:
parent
0c6ea0c0b0
commit
fab25ac004
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user