mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 00:08:04 +02:00
Tests for alternate key reporting
This commit is contained in:
@@ -10,7 +10,8 @@ from .typing import ScreenType
|
||||
|
||||
|
||||
def keyboard_mode_name(screen: ScreenType) -> str:
|
||||
if screen.current_key_encoding_flags() & 0b1000:
|
||||
flags = screen.current_key_encoding_flags()
|
||||
if flags:
|
||||
return 'kitty'
|
||||
return 'application' if screen.cursor_key_mode else 'normal'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user