Tests for alternate key reporting

This commit is contained in:
Kovid Goyal
2021-01-13 12:08:59 +05:30
parent 753ad68ca9
commit 819bd5cd70
4 changed files with 24 additions and 6 deletions

View File

@@ -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'