mirror of https://github.com/mpv-player/mpv
Revert "stats.lua: page 4 (keys): fix "excluding stats keys""
This reverts commit 0f1654811bda0dfdd337734ec33c59b67522234a. It was an incorrect fix, because the key names do get used - to remove the forced bindings once stats exits the interactive mode. And without names - the interactive keys remained active even after stats exited interactive mode.
This commit is contained in:
parent
fab25ac004
commit
1e1b5a6e14
|
@ -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, nil, scroll_up, {repeatable=true})
|
||||
mp.add_forced_key_binding(o.key_scroll_down, nil, scroll_down, {repeatable=true})
|
||||
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})
|
||||
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, nil, a(k), {repeatable=true})
|
||||
mp.add_forced_key_binding(k, k, a(k), {repeatable=true})
|
||||
end
|
||||
update_scroll_bindings(curr_page)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue