aboutsummaryrefslogtreecommitdiff
path: root/src/app/state.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-04-14 01:04:51 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-04-14 01:04:51 +0300
commitedaa3a1a092763cb25fd9e21772c95ee56a75a15 (patch)
tree88d54f6a3aa2a43c1c6dd4c7aaabd78ddfc03466 /src/app/state.rs
parent5ae1cea94bcd77c8a75abfbe6c996e5cf2a91ab7 (diff)
fix unify app key normalization for enhanced keyboard reporting
Diffstat (limited to 'src/app/state.rs')
-rw-r--r--src/app/state.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/app/state.rs b/src/app/state.rs
index 00968c15..b1e69098 100644
--- a/src/app/state.rs
+++ b/src/app/state.rs
@@ -657,10 +657,6 @@ impl AppState {
self.sound.enabled
}
- pub fn is_prefix(&self, key: &crossterm::event::KeyEvent) -> bool {
- key_matches(key, self.prefix_code, self.prefix_mods)
- }
-
pub fn estimate_pane_size(&self) -> (u16, u16) {
if let Some(info) = self.view.pane_infos.first() {
(info.rect.height, info.rect.width)
@@ -670,6 +666,7 @@ impl AppState {
}
}
+#[cfg(test)]
pub fn key_matches(
key: &crossterm::event::KeyEvent,
expected_code: KeyCode,