summaryrefslogtreecommitdiff
path: root/src/input/model.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-24 02:47:07 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-24 02:47:07 +0300
commit520d0b8b9c1b9d621274411d5fc26e35df9d60d2 (patch)
treef40e2a70743388073290a7c157f35bab4eb9bcde /src/input/model.rs
parent74fa90cecc6f6dfd93dc64893659771001ad2d82 (diff)
fix: prevent release key fallback from doubling input
refs #769
Diffstat (limited to 'src/input/model.rs')
-rw-r--r--src/input/model.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input/model.rs b/src/input/model.rs
index a439217f..1ce107d4 100644
--- a/src/input/model.rs
+++ b/src/input/model.rs
@@ -95,6 +95,10 @@ impl KeyboardProtocol {
Self::Kitty { flags }
}
}
+
+ pub(crate) fn reports_event_types(self) -> bool {
+ matches!(self, Self::Kitty { flags } if flags & 0b0000_0010 != 0)
+ }
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]