Skip to content

Commit

Permalink
fix: Recognize dot key as Char instead of Raw key
Browse files Browse the repository at this point in the history
Fixes #114
  • Loading branch information
huytd committed Jun 1, 2024
1 parent 15e874a commit d38e1bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ fn get_char(keycode: CGKeyCode) -> Option<PressedKey> {
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
Expand Down

0 comments on commit d38e1bb

Please sign in to comment.