From 96220f14582b99c405b410c95196c1cfd0eeb131 Mon Sep 17 00:00:00 2001 From: Matthew Francis Brunetti Date: Sun, 25 Dec 2016 22:48:44 -0500 Subject: [PATCH] Add "menu" key (windows only) --- src/keycode.h | 1 + src/robotjs.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/src/keycode.h b/src/keycode.h index 672d5d6d..dc9ce4bf 100644 --- a/src/keycode.h +++ b/src/keycode.h @@ -234,6 +234,7 @@ enum _MMKeyCode { K_SPACE = VK_SPACE, K_PRINTSCREEN = VK_SNAPSHOT, K_INSERT = VK_INSERT, + K_MENU = VK_APPS, K_NUMPAD_0 = VK_NUMPAD0, K_NUMPAD_1 = VK_NUMPAD1, diff --git a/src/robotjs.cc b/src/robotjs.cc index 7b0475de..6bfaff9d 100644 --- a/src/robotjs.cc +++ b/src/robotjs.cc @@ -340,6 +340,7 @@ static KeyNames key_names[] = { "space", K_SPACE }, { "printscreen", K_PRINTSCREEN }, { "insert", K_INSERT }, + { "menu", K_MENU }, { "audio_mute", K_AUDIO_VOLUME_MUTE }, { "audio_vol_down", K_AUDIO_VOLUME_DOWN },