From 991ba5449909dd0f69e36cb422a457ec570b23bc Mon Sep 17 00:00:00 2001 From: George Edward Bulmer Date: Wed, 21 Mar 2018 15:41:08 +0000 Subject: [PATCH] Change the formatting of the numpad keys This makes it consistent with as before --- qutebrowser/keyinput/keyutils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qutebrowser/keyinput/keyutils.py b/qutebrowser/keyinput/keyutils.py index fe5f64684..f0cf9c22a 100644 --- a/qutebrowser/keyinput/keyutils.py +++ b/qutebrowser/keyinput/keyutils.py @@ -299,15 +299,13 @@ class KeyInfo: elif self.modifiers == Qt.NoModifier: assert not is_special(self.key, self.modifiers) return key_string.lower() - elif self.modifiers == Qt.KeypadModifier: - assert not is_special(self.key, self.modifiers) - return "".format(key_string) else: # Use special binding syntax, but instead of key_string = key_string.lower() # "special" binding - assert is_special(self.key, self.modifiers) + assert (is_special(self.key, self.modifiers) or + self.modifiers == Qt.KeypadModifier) modifier_string = _modifiers_to_string(modifiers) return '<{}{}>'.format(modifier_string, key_string)