Skip to content

Commit 523cf3b

Browse files
committed
Added space to keycode list.
I’m not sure about the Linux keycode (XK_KP_Space), but it was the only option I could find.
1 parent e2541ef commit 523cf3b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/keycode.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ enum _MMKeyCode {
4444
K_ALT = kVK_Option,
4545
K_CONTROL = kVK_Control,
4646
K_SHIFT = kVK_Shift,
47-
K_CAPSLOCK = kVK_CapsLock
47+
K_CAPSLOCK = kVK_CapsLock,
48+
K_SPACE = kVK_Space
4849
};
4950

5051
typedef CGKeyCode MMKeyCode;
@@ -83,7 +84,8 @@ enum _MMKeyCode {
8384
K_ALT = XK_Alt_L,
8485
K_CONTROL = XK_Control_L,
8586
K_SHIFT = XK_Shift_L,
86-
K_CAPSLOCK = XK_Shift_Lock
87+
K_CAPSLOCK = XK_Shift_Lock,
88+
K_SPACE = XK_KP_Space
8789
};
8890

8991
typedef KeySym MMKeyCode;
@@ -120,7 +122,8 @@ enum _MMKeyCode {
120122
K_CONTROL = VK_CONTROL,
121123
K_SHIFT = VK_SHIFT,
122124
K_ALT = VK_MENU,
123-
K_CAPSLOCK = VK_CAPITAL
125+
K_CAPSLOCK = VK_CAPITAL,
126+
K_SPACE = VK_SPACE
124127
};
125128

126129
typedef int MMKeyCode;

0 commit comments

Comments
 (0)