1
0
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:
wm4 2014-12-03 22:40:24 +01:00
parent 19f9a7066e
commit 8fc3d7dc39

View File

@ -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