mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 20:44:32 +02:00
Refactor: More f-string for kitty
This commit is contained in:
2
kitty/key_encoding.py
generated
2
kitty/key_encoding.py
generated
@@ -181,7 +181,7 @@ class EventType(IntEnum):
|
||||
@lru_cache(maxsize=128)
|
||||
def parse_shortcut(spec: str) -> ParsedShortcut:
|
||||
if spec.endswith('+'):
|
||||
spec = spec[:-1] + 'plus'
|
||||
spec = f'{spec[:-1]}plus'
|
||||
parts = spec.split('+')
|
||||
key_name = parts[-1]
|
||||
key_name = functional_key_name_aliases.get(key_name.upper(), key_name)
|
||||
|
||||
Reference in New Issue
Block a user