Forgot to ad dmethod in previous commit
This commit is contained in:
parent
4448444d4b
commit
346ea8c8a0
1 changed files with 4 additions and 0 deletions
4
kitty/key_encoding.py
generated
4
kitty/key_encoding.py
generated
|
|
@ -239,6 +239,10 @@ def matches_text(self, text: str, case_sensitive: bool = False) -> bool:
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue