diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2021-07-20 00:45:17 +0300 |
---|---|---|
committer | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2021-07-20 01:00:03 +0300 |
commit | 1e1b5a6e146ccebd0d9941694064d360422a2795 (patch) | |
tree | 0b4ced6d2f982ece09ed0612b3fb8741b4f8f50f /player/lua | |
parent | fab25ac004be0de84d5f70f16499a73ae14b0f6d (diff) | |
download | mpv-1e1b5a6e146ccebd0d9941694064d360422a2795.tar.bz2 mpv-1e1b5a6e146ccebd0d9941694064d360422a2795.tar.xz |
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.
Diffstat (limited to 'player/lua')
-rw-r--r-- | player/lua/stats.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua index 50371aa3a8..1d629e08ad 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, 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 |