summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2024-02-04 15:39:28 +0400
committerGitHub <noreply@github.com>2024-02-04 15:39:28 +0400
commit20e3040be0a4ca75a41525e91996adf1a7bc6445 (patch)
treeba78861e29de15874767b80aa991030a87cc3a1c
parent2a50076f4ca7153972d2e792f576874965568441 (diff)
downloadalacritty-20e3040be0a4ca75a41525e91996adf1a7bc6445.tar.gz
alacritty-20e3040be0a4ca75a41525e91996adf1a7bc6445.zip
Fix hang on startup with some Wayland compositorsalacritty_terminal_v0.21.0
Fixes #7665.
-rw-r--r--CHANGELOG.md1
-rw-r--r--alacritty/src/config/bindings.rs1
-rw-r--r--extra/man/alacritty.5.scd4
3 files changed, 4 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7ac53941..20741f51 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Vi inline search/semantic selection expanding across newlines
- C0 and C1 codes being emitted in associated text when using kitty keyboard
- Occasional hang on startup with some Wayland compositors
+- Missing key for `NumpadDecimal` in key bindings
### Changed
diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs
index 9940cb5b..57225e26 100644
--- a/alacritty/src/config/bindings.rs
+++ b/alacritty/src/config/bindings.rs
@@ -704,6 +704,7 @@ impl<'a> Deserialize<'a> for BindingKey {
"NumpadEnter" => (Key::Named(NamedKey::Enter), KeyLocation::Numpad),
"NumpadAdd" => (Key::Character("+".into()), KeyLocation::Numpad),
"NumpadComma" => (Key::Character(",".into()), KeyLocation::Numpad),
+ "NumpadDecimal" => (Key::Character(".".into()), KeyLocation::Numpad),
"NumpadDivide" => (Key::Character("/".into()), KeyLocation::Numpad),
"NumpadEquals" => (Key::Character("=".into()), KeyLocation::Numpad),
"NumpadSubtract" => (Key::Character("-".into()), KeyLocation::Numpad),
diff --git a/extra/man/alacritty.5.scd b/extra/man/alacritty.5.scd
index d5f12554..f42b74e3 100644
--- a/extra/man/alacritty.5.scd
+++ b/extra/man/alacritty.5.scd
@@ -739,8 +739,8 @@ This section documents the *[keyboard]* table of the configuration file.
_https://docs.rs/winit/latest/winit/keyboard/enum.Key.html#variant.Dead_
Numpad keys are prefixed by _Numpad_: _"NumpadEnter"_ | _"NumpadAdd"_ |
- _"NumpadComma"_ | _"NumpadDivide"_ | _"NumpadEquals"_ | _"NumpadSubtract"_ |
- _"NumpadMultiply"_ | _"Numpad[0-9]"_.
+ _"NumpadComma"_ | _"NumpadDecimal"_ | _"NumpadDivide"_ | _"NumpadEquals"_ |
+ _"NumpadSubtract"_ | _"NumpadMultiply"_ | _"Numpad[0-9]"_.
The _key_ field also supports using scancodes, which are specified as a
decimal number.