diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-08-01 04:27:50 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-01 04:27:50 +0300 |
| commit | b76adc155d979705a353fd6dc87c702f9dfc6c22 (patch) | |
| tree | f613254e0cfbfd2b4450a6a5f3ee7c0ba8136976 /src/app/state.rs | |
| parent | 8d190eddda2c74afa3dc043f8ec8020ffd7b5a94 (diff) | |
fix(input): preserve native key lifecycle across routing (#2142)
refs #2077
Co-authored-by: Jonathan Liebig <jonathan.liebig@gmail.com>
Diffstat (limited to 'src/app/state.rs')
| -rw-r--r-- | src/app/state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/state.rs b/src/app/state.rs index 602bd9a4..ef903f65 100644 --- a/src/app/state.rs +++ b/src/app/state.rs @@ -1645,7 +1645,7 @@ impl AppState { || self.focused_pane_requests_mouse_capture_from(terminal_runtimes) } - pub fn is_prefix_key(&self, key: crate::input::TerminalKey) -> bool { + pub fn is_prefix_key(&self, key: &crate::input::TerminalKey) -> bool { crate::config::terminal_key_matches_combo(key, (self.prefix_code, self.prefix_mods)) } @@ -1742,7 +1742,7 @@ pub fn key_matches( expected_mods: KeyModifiers, ) -> bool { crate::config::terminal_key_matches_combo( - crate::input::TerminalKey::from(*key), + &crate::input::TerminalKey::from(*key), (expected_code, expected_mods), ) } |
