From 523cf3b2ea9e9659206bbea9b05b12314e70929b Mon Sep 17 00:00:00 2001 From: Jason Stallings Date: Sat, 18 Jul 2015 08:47:10 -0500 Subject: [PATCH] Added space to keycode list. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’m not sure about the Linux keycode (XK_KP_Space), but it was the only option I could find. --- src/keycode.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/keycode.h b/src/keycode.h index 1fb0b6d2..c648c2d9 100644 --- a/src/keycode.h +++ b/src/keycode.h @@ -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; @@ -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; @@ -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;