Fix --debug-config failing when native keys present

This commit is contained in:
Kovid Goyal 2018-06-30 18:42:19 +05:30
parent 9805d164d0
commit 05227e7dfb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -629,7 +629,10 @@ def print_shortcut(key_sequence, action):
if mods & val: if mods & val:
names.append(name) names.append(name)
if key: if key:
names.append(krmap[key]) if is_native:
names.append('<native key 0x{:x}>'.format(key))
else:
names.append(krmap[key])
keys.append('+'.join(names)) keys.append('+'.join(names))
print('\t', ' > '.join(keys), action) print('\t', ' > '.join(keys), action)