diff options
author | jaseg <githubaccount@jaseg.net> | 2017-05-20 22:34:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-20 22:34:08 +0200 |
commit | 5ca3a0250cd52d01e949d7f998c49db32480b1ca (patch) | |
tree | 3d1eb8320efc02bc53ea776e00829a6a13c4a66f | |
parent | b2993ceaaac56c7bdfafe5c1faa452391226eb9f (diff) | |
download | python-mpv-5ca3a0250cd52d01e949d7f998c49db32480b1ca.tar.gz python-mpv-5ca3a0250cd52d01e949d7f998c49db32480b1ca.tar.bz2 python-mpv-5ca3a0250cd52d01e949d7f998c49db32480b1ca.zip |
Fix typo in register_key_binding
-rw-r--r-- | mpv.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -841,7 +841,7 @@ class MPV(object): 'symbolic name (as printed by --input-keylist') binding_name = MPV._binding_name(keydef) if callable(callback_or_cmd): - callback_or_cmd.mpv_key_bindings = getattr(handler, 'mpv_key_bindings', []) + [keydef] + callback_or_cmd.mpv_key_bindings = getattr(callback_or_cmd, 'mpv_key_bindings', []) + [keydef] def unregister_all(): for keydef in callback_or_cmd.mpv_key_bindings: self.unregister_key_binding(keydef) |