mirror of
https://github.com/mpv-player/mpv
synced 2025-02-04 06:01:56 +00:00
lua: fully cleanup removed key bindings
This is basically cosmetic; it was leaking the old handler functions.
This commit is contained in:
parent
19f9a7066e
commit
8fc3d7dc39
@ -203,6 +203,7 @@ end
|
||||
|
||||
function mp.remove_key_binding(name)
|
||||
key_bindings[name] = nil
|
||||
dispatch_key_bindings[name] = nil
|
||||
update_key_bindings()
|
||||
mp.unregister_script_message(name)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user