Skip to content

Commit

Permalink
Added space to keycode list.
Browse files Browse the repository at this point in the history
I’m not sure about the Linux keycode (XK_KP_Space), but it was the only
option I could find.
  • Loading branch information
octalmage committed Jul 18, 2015
1 parent e2541ef commit 523cf3b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/keycode.h
Expand Up @@ -44,7 +44,8 @@ enum _MMKeyCode {
K_ALT = kVK_Option,
K_CONTROL = kVK_Control,
K_SHIFT = kVK_Shift,
K_CAPSLOCK = kVK_CapsLock
K_CAPSLOCK = kVK_CapsLock,
K_SPACE = kVK_Space
};

typedef CGKeyCode MMKeyCode;
Expand Down Expand Up @@ -83,7 +84,8 @@ enum _MMKeyCode {
K_ALT = XK_Alt_L,
K_CONTROL = XK_Control_L,
K_SHIFT = XK_Shift_L,
K_CAPSLOCK = XK_Shift_Lock
K_CAPSLOCK = XK_Shift_Lock,
K_SPACE = XK_KP_Space
};

typedef KeySym MMKeyCode;
Expand Down Expand Up @@ -120,7 +122,8 @@ enum _MMKeyCode {
K_CONTROL = VK_CONTROL,
K_SHIFT = VK_SHIFT,
K_ALT = VK_MENU,
K_CAPSLOCK = VK_CAPITAL
K_CAPSLOCK = VK_CAPITAL,
K_SPACE = VK_SPACE
};

typedef int MMKeyCode;
Expand Down

0 comments on commit 523cf3b

Please sign in to comment.