From d38e1bb3a8873e40d24d2de920c9f023da3ca456 Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Fri, 31 May 2024 23:36:36 -0700 Subject: [PATCH] fix: Recognize dot key as Char instead of Raw key Fixes #114 --- src/platform/macos.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/macos.rs b/src/platform/macos.rs index 286a5ad..f14d449 100644 --- a/src/platform/macos.rs +++ b/src/platform/macos.rs @@ -153,6 +153,7 @@ fn get_char(keycode: CGKeyCode) -> Option { 42 => Some(PressedKey::Char(key_map[&'\\'])), 44 => Some(PressedKey::Char(key_map[&'/'])), 39 => Some(PressedKey::Char(key_map[&'\''])), + 47 => Some(PressedKey::Char(key_map[&'.'])), 36 | 52 => Some(PressedKey::Char(KEY_ENTER)), // ENTER 49 => Some(PressedKey::Char(KEY_SPACE)), // SPACE 48 => Some(PressedKey::Char(KEY_TAB)), // TAB