fix control + space support

This commit is contained in:
hendrik 2024-09-25 10:41:51 +02:00 committed by Jeremy Soller
parent f2b937ef27
commit 7e31cef391

View file

@ -778,7 +778,12 @@ where
status = Status::Captured;
}
Named::Space => {
terminal.input_scroll(format!("{}{}", alt_prefix, " ").into_bytes());
if modifiers.control() {
// Send NUL character (\x00) for Ctrl + Space
terminal.input_scroll(b"\x00".to_vec());
} else {
terminal.input_scroll(format!("{}{}", alt_prefix, " ").into_bytes());
}
status = Status::Captured;
}
Named::Tab => {