Skip to content

Commit 45a4281

Browse files
lambdalisueaugust64
authored andcommitted
Support Yen in macOS (#739)
* Support Yen in macOS * Add entry to CHANGELOG
1 parent bfbcab3 commit 45a4281

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Unreleased
22

3+
- On macOS, fix `Yen` (JIS) so applications receive the event.
34
- On X11 with a tiling WM, fixed high CPU usage when moving windows across monitors.
45
- On X11, fixed panic caused by dropping the window before running the event loop.
56
- on macOS, added `WindowExt::set_simple_fullscreen` which does not require a separate space

src/platform/macos/events_loop.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,18 +639,18 @@ pub fn to_virtual_key_code(code: c_ushort) -> Option<events::VirtualKeyCode> {
639639
0x5a => events::VirtualKeyCode::F20,
640640
0x5b => events::VirtualKeyCode::Numpad8,
641641
0x5c => events::VirtualKeyCode::Numpad9,
642-
//0x5d => unkown,
643-
//0x5e => unkown,
642+
0x5d => events::VirtualKeyCode::Yen,
643+
//0x5e => JIS Ro,
644644
//0x5f => unkown,
645645
0x60 => events::VirtualKeyCode::F5,
646646
0x61 => events::VirtualKeyCode::F6,
647647
0x62 => events::VirtualKeyCode::F7,
648648
0x63 => events::VirtualKeyCode::F3,
649649
0x64 => events::VirtualKeyCode::F8,
650650
0x65 => events::VirtualKeyCode::F9,
651-
//0x66 => unkown,
651+
//0x66 => JIS Eisuu (macOS),
652652
0x67 => events::VirtualKeyCode::F11,
653-
//0x68 => unkown,
653+
//0x68 => JIS Kana (macOS),
654654
0x69 => events::VirtualKeyCode::F13,
655655
0x6a => events::VirtualKeyCode::F16,
656656
0x6b => events::VirtualKeyCode::F14,

0 commit comments

Comments
 (0)