From 09b25bd6362bab9090f0c9f91277319a140e9eba Mon Sep 17 00:00:00 2001 From: Rasmus Michelsen Date: Tue, 14 Apr 2020 14:36:42 +0200 Subject: [PATCH] Fixed win32 input for Danish keyboard layout --- src/bridge/layouts/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bridge/layouts/mod.rs b/src/bridge/layouts/mod.rs index 6d91d69..e53e9d0 100644 --- a/src/bridge/layouts/mod.rs +++ b/src/bridge/layouts/mod.rs @@ -64,20 +64,20 @@ fn append_modifiers( if result == "<" { result = "lt".to_string(); special = true; - } + } if shift { special = true; result = format!("S-{}", result); } - if ctrl { + if ctrl && !alt { special = true; result = format!("C-{}", result); } - if alt { + if alt && !ctrl { special = true; result = format!("M-{}", result); - } + } if cfg!(not(target_os = "windows")) && gui { special = true; result = format!("D-{}", result);