Forgot to ad dmethod in previous commit

This commit is contained in:
Kovid Goyal 2021-11-28 12:01:09 +05:30
parent 4448444d4b
commit 346ea8c8a0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

4
kitty/key_encoding.py generated
View File

@ -239,6 +239,10 @@ class KeyEvent(NamedTuple):
return self.text == text
return self.text.lower() == text.lower()
@property
def is_release(self) -> bool:
return self.type is EventType.RELEASE
@property
def mods_without_locks(self) -> int:
return self.mods & ~(NUM_LOCK | CAPS_LOCK)