summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
authorjaseg <githubaccount@jaseg.net>2017-05-20 22:34:08 +0200
committerGitHub <noreply@github.com>2017-05-20 22:34:08 +0200
commit5ca3a0250cd52d01e949d7f998c49db32480b1ca (patch)
tree3d1eb8320efc02bc53ea776e00829a6a13c4a66f /mpv.py
parentb2993ceaaac56c7bdfafe5c1faa452391226eb9f (diff)
downloadpython-mpv-5ca3a0250cd52d01e949d7f998c49db32480b1ca.tar.gz
python-mpv-5ca3a0250cd52d01e949d7f998c49db32480b1ca.tar.bz2
python-mpv-5ca3a0250cd52d01e949d7f998c49db32480b1ca.zip
Fix typo in register_key_binding
Diffstat (limited to 'mpv.py')
-rw-r--r--mpv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpv.py b/mpv.py
index d759344..600e7c6 100644
--- a/mpv.py
+++ b/mpv.py
@@ -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)