Skip to content

Commit

Permalink
Fix kitty encoding used for char input without text
Browse files Browse the repository at this point in the history
On Windows some key combinations for regular text input, like Ctrl+1
don't have any text attached, so they were generating the kitty escape
sequence even when they shouldn't.
  • Loading branch information
kchibisov authored and chrisduerr committed Mar 24, 2024
1 parent e98f052 commit 889a326
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Config keys are available under proper names
- Build failure when compiling with x11 feature on NetBSD
- Hint `Select` action selecting the entire line for URL escapes
- Kitty encoding used for regular keys when they don't carry text

### Changed

Expand Down
2 changes: 1 addition & 1 deletion alacritty/src/input/keyboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ impl SequenceBuilder {
associated_text: Option<&str>,
) -> Option<SequenceBase> {
let character = match key.logical_key.as_ref() {
Key::Character(character) => character,
Key::Character(character) if self.kitty_seq => character,
_ => return None,
};

Expand Down

0 comments on commit 889a326

Please sign in to comment.