Skip to content

Commit

Permalink
Merge pull request #257 from zenflow/add-menu-key
Browse files Browse the repository at this point in the history
Add "menu" key (windows only)
  • Loading branch information
octalmage authored Feb 23, 2017
2 parents 01f3464 + 85c5b9f commit 3850629
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/keycode.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ enum _MMKeyCode {
K_SPACE = kVK_Space,
K_INSERT = K_NOT_A_KEY,
K_PRINTSCREEN = K_NOT_A_KEY,
K_MENU = K_NOT_A_KEY,

K_NUMPAD_0 = kVK_ANSI_Keypad0,
K_NUMPAD_1 = kVK_ANSI_Keypad1,
Expand Down Expand Up @@ -150,6 +151,7 @@ enum _MMKeyCode {
K_SPACE = XK_space,
K_INSERT = XK_Insert,
K_PRINTSCREEN = XK_Print,
K_MENU = K_NOT_A_KEY,

K_NUMPAD_0 = K_NOT_A_KEY,
K_NUMPAD_1 = K_NOT_A_KEY,
Expand Down Expand Up @@ -234,6 +236,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,
Expand Down
1 change: 1 addition & 0 deletions src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,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 },
Expand Down

0 comments on commit 3850629

Please sign in to comment.