1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Fix kitty encoding used for char input without text

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.
This commit is contained in:
Kirill Chibisov 2024-03-21 08:00:06 +04:00 committed by Christian Duerr
parent e98f052e64
commit 889a326738
2 changed files with 2 additions and 1 deletions

View file

@ -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 - Config keys are available under proper names
- Build failure when compiling with x11 feature on NetBSD - Build failure when compiling with x11 feature on NetBSD
- Hint `Select` action selecting the entire line for URL escapes - Hint `Select` action selecting the entire line for URL escapes
- Kitty encoding used for regular keys when they don't carry text
### Changed ### Changed

View file

@ -347,7 +347,7 @@ impl SequenceBuilder {
associated_text: Option<&str>, associated_text: Option<&str>,
) -> Option<SequenceBase> { ) -> Option<SequenceBase> {
let character = match key.logical_key.as_ref() { let character = match key.logical_key.as_ref() {
Key::Character(character) => character, Key::Character(character) if self.kitty_seq => character,
_ => return None, _ => return None,
}; };