mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 10:12:17 +02:00
Forgot to ad dmethod in previous commit
This commit is contained in:
4
kitty/key_encoding.py
generated
4
kitty/key_encoding.py
generated
@@ -239,6 +239,10 @@ class KeyEvent(NamedTuple):
|
|||||||
return self.text == text
|
return self.text == text
|
||||||
return self.text.lower() == text.lower()
|
return self.text.lower() == text.lower()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_release(self) -> bool:
|
||||||
|
return self.type is EventType.RELEASE
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def mods_without_locks(self) -> int:
|
def mods_without_locks(self) -> int:
|
||||||
return self.mods & ~(NUM_LOCK | CAPS_LOCK)
|
return self.mods & ~(NUM_LOCK | CAPS_LOCK)
|
||||||
|
|||||||
Reference in New Issue
Block a user