diff options
| author | Kirill Chibisov <contact@kchibisov.com> | 2025-05-03 07:05:22 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-03 07:05:22 +0900 |
| commit | def47a5dd511ed20607eb5d9e5e7140afd16b31d (patch) | |
| tree | 088657dd9b8c8d94179be7e1a613a820067f0f01 /alacritty/src/input | |
| parent | a0c4dfe962fdb0ee00b85de1cd2af16a0e8e2e9e (diff) | |
| download | r-alacritty-def47a5dd511ed20607eb5d9e5e7140afd16b31d.tar.gz r-alacritty-def47a5dd511ed20607eb5d9e5e7140afd16b31d.tar.bz2 r-alacritty-def47a5dd511ed20607eb5d9e5e7140afd16b31d.zip | |
Fix disambiguation for Enter/Tab/Backspace
The keys were not disambiguated, but they should be. Was just an
oversight.
Diffstat (limited to 'alacritty/src/input')
| -rw-r--r-- | alacritty/src/input/keyboard.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/alacritty/src/input/keyboard.rs b/alacritty/src/input/keyboard.rs index ccdeac3f..113472c4 100644 --- a/alacritty/src/input/keyboard.rs +++ b/alacritty/src/input/keyboard.rs @@ -152,8 +152,15 @@ impl<T: EventListener, A: ActionContext<T>> Processor<T, A> { let disambiguate = mode.contains(TermMode::DISAMBIGUATE_ESC_CODES) && (key.logical_key == Key::Named(NamedKey::Escape) - || (!mods.is_empty() && mods != ModifiersState::SHIFT) - || key.location == KeyLocation::Numpad); + || key.location == KeyLocation::Numpad + || (!mods.is_empty() + && (mods != ModifiersState::SHIFT + || matches!( + key.logical_key, + Key::Named(NamedKey::Tab) + | Key::Named(NamedKey::Enter) + | Key::Named(NamedKey::Backspace) + )))); match key.logical_key { _ if disambiguate => true, |