From 437ecc682f7f7537d49495fc628aa9b402e8d9dd Mon Sep 17 00:00:00 2001 From: sxyazi Date: Wed, 20 Sep 2023 23:50:23 +0800 Subject: [PATCH] fix --- config/src/keymap/key.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/src/keymap/key.rs b/config/src/keymap/key.rs index 25f45b9a..5bbe48bf 100644 --- a/config/src/keymap/key.rs +++ b/config/src/keymap/key.rs @@ -33,12 +33,12 @@ impl Default for Key { impl From for Key { fn from(value: KeyEvent) -> Self { // For alphabet: - // Unix : => Char("A") + Shift - // Windows : => Char("A") + Shift + // Unix : => Char("A") + SHIFT + // Windows : => Char("A") + SHIFT // // For non-alphabet: // Unix : => Char("~") + NULL - // Windows : => Char("`") + Shift + // Windows : => Char("~") + SHIFT // // So we detect `Char("`") + Shift`, and change it to `Char("~") + NULL` // for consistent behavior between OSs.