Skip to content

Commit

Permalink
fix command key event left and right reverse on macOS (rust-windowing…
Browse files Browse the repository at this point in the history
…#810)

* fix command key event left and right reverse on macOS

rust-windowing#808

* update changelog
  • Loading branch information
TakWolf authored and Osspial committed Mar 25, 2019
1 parent 0019ff2 commit 57680d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- On Windows, fix `CursorMoved(0, 0)` getting dispatched on window focus.
- On macOS, fix command key event left and right reverse.
- On FreeBSD, NetBSD, and OpenBSD, fix build of X11 backend.

# Version 0.19.0 (2019-03-06)
Expand Down
4 changes: 2 additions & 2 deletions src/platform/macos/events_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,8 @@ pub fn scancode_to_keycode(code: c_ushort) -> Option<events::VirtualKeyCode> {
0x33 => events::VirtualKeyCode::Back,
//0x34 => unkown,
0x35 => events::VirtualKeyCode::Escape,
0x36 => events::VirtualKeyCode::LWin,
0x37 => events::VirtualKeyCode::RWin,
0x36 => events::VirtualKeyCode::RWin,
0x37 => events::VirtualKeyCode::LWin,
0x38 => events::VirtualKeyCode::LShift,
//0x39 => Caps lock,
0x3a => events::VirtualKeyCode::LAlt,
Expand Down

0 comments on commit 57680d2

Please sign in to comment.