Merge pull request #767 from hojjatabdollahi/hojjat/fix-space-key

fix: only send "space" to the focused pane
This commit is contained in:
Levi Portenier 2026-03-23 15:37:20 -06:00 committed by GitHub
commit 661d30b567
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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