From 5ca3a0250cd52d01e949d7f998c49db32480b1ca Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 20 May 2017 22:34:08 +0200 Subject: Fix typo in register_key_binding --- mpv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit