From 666cc6f13e5b881b40d99519be4d4962f137b285 Mon Sep 17 00:00:00 2001 From: Jason Stallings Date: Tue, 31 May 2016 19:16:29 -0500 Subject: [PATCH] Add right_shift. --- src/keycode.h | 3 +++ src/robotjs.cc | 1 + 2 files changed, 4 insertions(+) diff --git a/src/keycode.h b/src/keycode.h index 07da9e09..b3246ec6 100644 --- a/src/keycode.h +++ b/src/keycode.h @@ -46,6 +46,7 @@ enum _MMKeyCode { K_ALT = kVK_Option, K_CONTROL = kVK_Control, K_SHIFT = kVK_Shift, + K_RIGHTSHIFT = kVK_RightShift, K_CAPSLOCK = kVK_CapsLock, K_SPACE = kVK_Space, K_INSERT = K_NOT_A_KEY, @@ -120,6 +121,7 @@ enum _MMKeyCode { K_ALT = XK_Alt_L, K_CONTROL = XK_Control_L, K_SHIFT = XK_Shift_L, + K_RIGHTSHIFT = XK_Shift_R, K_CAPSLOCK = XK_Shift_Lock, K_SPACE = XK_space, K_INSERT = XK_Insert, @@ -190,6 +192,7 @@ enum _MMKeyCode { K_META = VK_LWIN, K_CONTROL = VK_CONTROL, K_SHIFT = VK_SHIFT, + K_RIGHTSHIFT = VK_RSHIFT, K_ALT = VK_MENU, K_CAPSLOCK = VK_CAPITAL, K_SPACE = VK_SPACE, diff --git a/src/robotjs.cc b/src/robotjs.cc index 53daaa9c..f1a1d311 100644 --- a/src/robotjs.cc +++ b/src/robotjs.cc @@ -321,6 +321,7 @@ static KeyNames key_names[] = { "alt", K_ALT }, { "control", K_CONTROL }, { "shift", K_SHIFT }, + { "right_shift", K_RIGHTSHIFT }, { "space", K_SPACE }, { "printscreen", K_PRINTSCREEN }, { "insert", K_INSERT },