From 520d0b8b9c1b9d621274411d5fc26e35df9d60d2 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 24 Jun 2026 02:47:07 +0300 Subject: fix: prevent release key fallback from doubling input refs #769 --- src/input/model.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/input/model.rs') 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)] -- cgit v1.2.3