diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2024-01-31 00:11:16 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-31 00:11:16 +0400 |
commit | 38d63abd5f227fe639ee0f9f0e3f1cf4d6207e28 (patch) | |
tree | 33d627ad3a57ae137f5123821fd231b1c94e9342 /alacritty/src/config/bindings.rs | |
parent | 7c046f5ae664f746c5f5a4bbe18c0e89f5702305 (diff) | |
download | r-alacritty-38d63abd5f227fe639ee0f9f0e3f1cf4d6207e28.tar.gz r-alacritty-38d63abd5f227fe639ee0f9f0e3f1cf4d6207e28.tar.bz2 r-alacritty-38d63abd5f227fe639ee0f9f0e3f1cf4d6207e28.zip |
Don't use kitty sequences outside protocol
Originally kitty defined that functional keys, which are not encoded
by default, like `Pause` should be encoded with `CSI u`. However
the specification was clarified and now it says that terminal
may ignore that part. Given that Alacritty tries to follow xterm/urxvt
when it comes to bindings, CSI u bindings are not send for consistency
reasons.
This also brings back F13-F20 bindings used by Alacritty in 0.12.3, as
well as explicitly defines `NumpadEnter` like it was before.
Closes #7623.
Diffstat (limited to 'alacritty/src/config/bindings.rs')
-rw-r--r-- | alacritty/src/config/bindings.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs index 794cb04d..9940cb5b 100644 --- a/alacritty/src/config/bindings.rs +++ b/alacritty/src/config/bindings.rs @@ -453,6 +453,7 @@ pub fn default_key_bindings() -> Vec<KeyBinding> { Backspace, ~BindingMode::VI, ~BindingMode::SEARCH, ~BindingMode::REPORT_ALL_KEYS_AS_ESC; Action::Esc("\x7f".into()); Backspace, ModifiersState::ALT, ~BindingMode::VI, ~BindingMode::SEARCH, ~BindingMode::REPORT_ALL_KEYS_AS_ESC; Action::Esc("\x1b\x7f".into()); Backspace, ModifiersState::SHIFT, ~BindingMode::VI, ~BindingMode::SEARCH, ~BindingMode::REPORT_ALL_KEYS_AS_ESC; Action::Esc("\x7f".into()); + Enter => KeyLocation::Numpad, ~BindingMode::VI, ~BindingMode::SEARCH, ~BindingMode::REPORT_ALL_KEYS_AS_ESC, ~BindingMode::DISAMBIGUATE_ESC_CODES; Action::Esc("\n".into()); // Vi mode. Space, ModifiersState::SHIFT | ModifiersState::CONTROL, ~BindingMode::SEARCH; Action::ToggleViMode; Space, ModifiersState::SHIFT | ModifiersState::CONTROL, +BindingMode::VI, ~BindingMode::SEARCH; Action::ScrollToBottom; |