summaryrefslogtreecommitdiffstats
path: root/alacritty/src/input/keyboard.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty/src/input/keyboard.rs')
-rw-r--r--alacritty/src/input/keyboard.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/alacritty/src/input/keyboard.rs b/alacritty/src/input/keyboard.rs
index 6d2abea1..8e559be1 100644
--- a/alacritty/src/input/keyboard.rs
+++ b/alacritty/src/input/keyboard.rs
@@ -174,7 +174,14 @@ impl<T: EventListener, A: ActionContext<T>> Processor<T, A> {
let logical_key = if let Key::Character(ch) = key.logical_key.as_ref() {
// Match `Alt` bindings without `Alt` being applied, otherwise they use the
// composed chars, which are not intuitive to bind.
- if cfg!(target_os = "macos") && mods.alt_key() {
+ //
+ // On Windows, the `Ctrl + Alt` mangles `logical_key` to unidentified values, thus
+ // preventing them from being used in bindings
+ //
+ // For more see https://github.com/rust-windowing/winit/issues/2945.
+ if (cfg!(target_os = "macos") || (cfg!(windows) && mods.control_key()))
+ && mods.alt_key()
+ {
key.key_without_modifiers()
} else {
Key::Character(ch.to_lowercase().into())