diff --git a/src/keycode.h b/src/keycode.h index 672d5d6d..c69ad9ee 100644 --- a/src/keycode.h +++ b/src/keycode.h @@ -57,6 +57,8 @@ enum _MMKeyCode { K_META = kVK_Command, K_ALT = kVK_Option, K_CONTROL = kVK_Control, + K_LEFT_CONTROL = kVK_Control, + K_RIGHT_CONTROL = kVK_RightControl, K_SHIFT = kVK_Shift, K_RIGHTSHIFT = kVK_RightShift, K_CAPSLOCK = kVK_CapsLock, @@ -144,6 +146,8 @@ enum _MMKeyCode { K_META = XK_Super_L, K_ALT = XK_Alt_L, K_CONTROL = XK_Control_L, + K_LEFT_CONTROL = XK_Control_L, + K_RIGHT_CONTROL = XK_Control_R, K_SHIFT = XK_Shift_L, K_RIGHTSHIFT = XK_Shift_R, K_CAPSLOCK = XK_Shift_Lock, @@ -227,6 +231,8 @@ enum _MMKeyCode { K_F24 = VK_F24, K_META = VK_LWIN, K_CONTROL = VK_CONTROL, + K_LEFT_CONTROL = VK_LCONTROL, + K_RIGHT_CONTROL = VK_RCONTROL, K_SHIFT = VK_SHIFT, K_RIGHTSHIFT = VK_RSHIFT, K_ALT = VK_MENU, diff --git a/src/robotjs.cc b/src/robotjs.cc index 7b0475de..55933824 100644 --- a/src/robotjs.cc +++ b/src/robotjs.cc @@ -335,6 +335,8 @@ static KeyNames key_names[] = { "command", K_META }, { "alt", K_ALT }, { "control", K_CONTROL }, + { "left_control", K_LEFT_CONTROL }, + { "right_control", K_RIGHT_CONTROL }, { "shift", K_SHIFT }, { "right_shift", K_RIGHTSHIFT }, { "space", K_SPACE },