mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
show_key: use a better representation of the space key when
This commit is contained in:
parent
aedda4bf9b
commit
132f87d152
1 changed files with 4 additions and 1 deletions
|
|
@ -47,7 +47,10 @@ class KeysHandler(Handler):
|
|||
mods = format_mods(key_event.mods)
|
||||
if mods:
|
||||
mods += '+'
|
||||
key = f'{mods}{key_event.key} '
|
||||
kk = key_event.key
|
||||
if kk == ' ':
|
||||
kk = 'SPACE'
|
||||
key = f'{mods}{kk} '
|
||||
self.cmd.colored(key, 'green')
|
||||
self.cmd.colored(etype + ' ', 'yellow')
|
||||
self.cmd.styled(key_event.text, italic=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue