From 346ea8c8a026727dec6a7f60a3f07e592c11e265 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 28 Nov 2021 12:01:09 +0530 Subject: [PATCH] Forgot to ad dmethod in previous commit --- kitty/key_encoding.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kitty/key_encoding.py b/kitty/key_encoding.py index 95f2ef545..02f1d38c7 100644 --- a/kitty/key_encoding.py +++ b/kitty/key_encoding.py @@ -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)