mirror of
https://github.com/mpv-player/mpv
synced 2025-02-18 13:47:04 +00:00
stats: fix single invocation keybindings
This commit is contained in:
parent
f89c7404d1
commit
b67c7a23b8
@ -964,8 +964,11 @@ mp.add_key_binding(o.key_toggle, "display-stats-toggle", function() process_key_
|
|||||||
-- Single invocation bindings without key, can be used in input.conf to create
|
-- Single invocation bindings without key, can be used in input.conf to create
|
||||||
-- bindings for a specific page: "e script-binding stats/display-page-2"
|
-- bindings for a specific page: "e script-binding stats/display-page-2"
|
||||||
for k, _ in pairs(pages) do
|
for k, _ in pairs(pages) do
|
||||||
mp.add_key_binding(nil, "display-page-" .. k, function() process_key_binding(true) end,
|
mp.add_key_binding(nil, "display-page-" .. k,
|
||||||
{repeatable=true})
|
function()
|
||||||
|
curr_page = k
|
||||||
|
process_key_binding(true)
|
||||||
|
end, {repeatable=true})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Reprint stats immediately when VO was reconfigured, only when toggled
|
-- Reprint stats immediately when VO was reconfigured, only when toggled
|
||||||
|
Loading…
Reference in New Issue
Block a user