1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2025-02-10 15:46:10 -05:00

Fix hang on startup with some Wayland compositors

Fixes #7665.
This commit is contained in:
Kirill Chibisov 2024-02-04 15:39:28 +04:00 committed by Christian Duerr
parent b02721b65e
commit 1d43964bc6
3 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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),

View file

@ -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.