Fix regression in previous release that caused --debug-config to fail when printing shortcuts

Forgot to adjust the print shortcuts code for native shortcuts.
Fixes #695
This commit is contained in:
Kovid Goyal 2018-06-30 17:48:25 +05:30
parent 9277b80fad
commit 3ec66c0b9f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -624,7 +624,7 @@ def print_shortcut(key_sequence, action):
keys = []
for key in key_sequence:
names = []
mods, key = key
mods, is_native, key = key
for name, val in mmap.items():
if mods & val:
names.append(name)

View File

@ -37,7 +37,7 @@ def parse_shortcut(sc):
parts = sc.split('+')
mods = parse_mods(parts[:-1], sc)
if mods is None:
return None, None
return None, None, None
key = parts[-1].upper()
key = getattr(defines, 'GLFW_KEY_' + named_keys.get(key, key), None)
is_native = False