From 1428345cad272f4fd2a7c52cc434ecc8d10546c3 Mon Sep 17 00:00:00 2001 From: Hojjat Date: Thu, 19 Mar 2026 11:44:06 -0600 Subject: [PATCH] fix: only send "space" to the focused pane --- src/terminal_box.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal_box.rs b/src/terminal_box.rs index 583d6bd..43398c0 100644 --- a/src/terminal_box.rs +++ b/src/terminal_box.rs @@ -1030,7 +1030,7 @@ where modifiers, key, .. - }) if *key == Key::Character(SmolStr::new(" ")) => { + }) if state.is_focused && *key == Key::Character(SmolStr::new(" ")) => { //Special handle Enter, Escape, Backspace and Tab as described in //https://sw.kovidgoyal.net/kitty/keyboard-protocol/#legacy-key-event-encoding //Also special handle Ctrl-_ to behave like xterm