aboutsummaryrefslogtreecommitdiff
path: root/src/raw_input.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-04-03 00:30:06 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-04-03 00:30:06 +0300
commit33ccc1656c90f4beb20147ee524fa43fcba34fc8 (patch)
tree6c1345b0d4b283a67e7bdf05ee82488eefab0604 /src/raw_input.rs
parent544c7ebebbc1db65a2949642d367edc446ae559b (diff)
fix: drop modifier-only keys before pane forwarding
Diffstat (limited to 'src/raw_input.rs')
-rw-r--r--src/raw_input.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/raw_input.rs b/src/raw_input.rs
index dd61ee5a..77aaecdb 100644
--- a/src/raw_input.rs
+++ b/src/raw_input.rs
@@ -76,6 +76,10 @@ fn flush_incomplete_buffer(buffer: &mut Vec<u8>, tx: &mpsc::Sender<RawInputEvent
}
if buffer.as_slice() == [ESC] {
+ tracing::warn!(
+ bytes = ?buffer,
+ "flushing lone escape after input timeout; if this follows an alt chord or focus switch it may reach the pane as plain esc"
+ );
let _ = tx.blocking_send(RawInputEvent::Key(TerminalKey::new(
crossterm::event::KeyCode::Esc,
KeyModifiers::empty(),