mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Refactor key encoding
Cannot have key names in global namespace as not all key names are valid python identifiers. So move them into a dict.
This commit is contained in:
parent
64b497589f
commit
8843ded1c9
7 changed files with 37 additions and 12 deletions
|
|
@ -17,7 +17,7 @@ from gettext import gettext as _
|
|||
from kitty.cli import CONFIG_HELP, parse_args
|
||||
from kitty.constants import appname
|
||||
from kitty.fast_data_types import wcswidth
|
||||
from kitty.key_encoding import ESCAPE, RELEASE, enter_key
|
||||
from kitty.key_encoding import K, RELEASE, enter_key
|
||||
|
||||
from ..tui.handler import Handler
|
||||
from ..tui.images import ImageManager
|
||||
|
|
@ -40,6 +40,7 @@ except ImportError:
|
|||
|
||||
|
||||
INITIALIZING, COLLECTED, DIFFED, COMMAND, MESSAGE = range(5)
|
||||
ESCAPE = K['ESCAPE']
|
||||
|
||||
|
||||
def generate_diff(collection, context):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue