aboutsummaryrefslogtreecommitdiff
path: root/src/input/model.rs
diff options
context:
space:
mode:
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)]