Skip to content

Instantly share code, notes, and snippets.

@metacollin
Created July 26, 2018 06:07
Show Gist options
  • Save metacollin/98a18275effdc8cca6a00d608dd015df to your computer and use it in GitHub Desktop.
Save metacollin/98a18275effdc8cca6a00d608dd015df to your computer and use it in GitHub Desktop.
index 3e0ebbf6ec..7a8132a221 100644
--- a/dlls/winemac.drv/keyboard.c
+++ b/dlls/winemac.drv/keyboard.c
@@ -238,14 +238,14 @@ static const struct {
{ VK_BACK, 0x0E, TRUE }, /* kVK_Delete */
{ 0, 0, FALSE }, /* 0x34 unused */
{ VK_ESCAPE, 0x01, TRUE }, /* kVK_Escape */
- { VK_RMENU, 0x38 | 0x100, TRUE }, /* kVK_RightCommand */
- { VK_LMENU, 0x38, TRUE }, /* kVK_Command */
+ { VK_RWIN, 0x5C | 0x100, TRUE }, /* kVK_RightCommand */ //was VK_RMENU, 0x38 | 0x100
+ { VK_LWIN, 0x5B, TRUE }, /* kVK_Command */ //was VK_LMENU, 0x38
{ VK_LSHIFT, 0x2A, TRUE }, /* kVK_Shift */
{ VK_CAPITAL, 0x3A, TRUE }, /* kVK_CapsLock */
- { 0, 0, FALSE }, /* kVK_Option */
+ { VK_LMENU, 0x38, TRUE }, /* kVK_Option */ //was 0, 0, false
{ VK_LCONTROL, 0x1D, TRUE }, /* kVK_Control */
{ VK_RSHIFT, 0x36, TRUE }, /* kVK_RightShift */
- { 0, 0, FALSE }, /* kVK_RightOption */
+ { VK_RMENU, 0x38, TRUE }, /* kVK_RightOption */ //was 0, 0, false
{ VK_RCONTROL, 0x1D | 0x100, TRUE }, /* kVK_RightControl */
{ 0, 0, FALSE }, /* kVK_Function */
{ VK_F17, 0x68, TRUE }, /* kVK_F17 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment