Skip to content

Commit

Permalink
fix control + space support
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikHamerlinck authored and jackpot51 committed Sep 25, 2024
1 parent f2b937e commit 7e31cef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/terminal_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 7e31cef

Please sign in to comment.