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:
parent
e98f052e64
commit
889a326738
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue