From efe7c557690157a4e133cd60dd7e2ec1bf6124f7 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Mon, 15 Jun 2026 04:53:46 +0300 Subject: fix: accept alternate f1-f4 key sequences refs #574 --- src/app/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/app/mod.rs') 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] -- cgit v1.2.3