diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-03 00:30:06 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-03 00:30:06 +0300 |
| commit | 33ccc1656c90f4beb20147ee524fa43fcba34fc8 (patch) | |
| tree | 6c1345b0d4b283a67e7bdf05ee82488eefab0604 /src/raw_input.rs | |
| parent | 544c7ebebbc1db65a2949642d367edc446ae559b (diff) | |
fix: drop modifier-only keys before pane forwarding
Diffstat (limited to 'src/raw_input.rs')
| -rw-r--r-- | src/raw_input.rs | 4 |
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(), |
