Fix keybindings that use the shift modifier

This commit is contained in:
Stephen Boddy 2017-02-01 08:55:54 +01:00
parent eaaac416f8
commit 2d063546a8
1 changed files with 2 additions and 3 deletions

View File

@ -82,9 +82,8 @@ class Keybindings:
mask &= ~Gdk.ModifierType.SHIFT_MASK mask &= ~Gdk.ModifierType.SHIFT_MASK
else: else:
keyvals = Gdk.keyval_convert_case(keyval) keyvals = Gdk.keyval_convert_case(keyval)
if keyvals[0] != keyvals[1]: keyval = keyvals[1]
keyval = keyvals[1] mask &= ~Gdk.ModifierType.SHIFT_MASK
mask &= ~Gdk.ModifierType.SHIFT_MASK
else: else:
keyval = Gdk.keyval_to_lower(keyval) keyval = Gdk.keyval_to_lower(keyval)
self._lookup.setdefault(mask, {}) self._lookup.setdefault(mask, {})