diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-15 04:53:46 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-15 04:53:46 +0300 |
| commit | efe7c557690157a4e133cd60dd7e2ec1bf6124f7 (patch) | |
| tree | d0102e8bc49c291f84118c9612a662a58cf9946d /src/app | |
| parent | 3e8f906c6fcc4e9e7be6b3d0c4ee84b804027b5a (diff) | |
fix: accept alternate f1-f4 key sequences
refs #574
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/mod.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs index 36fedb71..d45e085b 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -3971,6 +3971,15 @@ last_pane = "prefix+tab" app.route_client_input(b"\x1b[99;5u".to_vec()); assert_eq!(rx.recv().await.unwrap(), bytes::Bytes::from(vec![3])); + + // iTerm2 and rxvt-style hosts may send F4 as CSI 14~. Normalize it + // through the same semantic key path instead of leaking host bytes. + app.route_client_input(b"\x1b[14~".to_vec()); + + assert_eq!( + rx.recv().await.unwrap(), + bytes::Bytes::from_static(b"\x1bOS") + ); } #[tokio::test] |
