Skip to content

Commit

Permalink
add key "numpad_lock" support
Browse files Browse the repository at this point in the history
  • Loading branch information
vcaesar committed Dec 11, 2018
1 parent 54f78e2 commit 98987b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
"numpad_7" No Linux support
"numpad_8" No Linux support
"numpad_9" No Linux support
"num_lock"
"numpad_lock"

"lights_mon_up" Turn up monitor brightness No Windows support
"lights_mon_down" Turn down monitor brightness No Windows support
Expand Down
2 changes: 2 additions & 0 deletions key/goKey.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ struct KeyNames{
{ "numpad_7", K_NUMPAD_7 },
{ "numpad_8", K_NUMPAD_8 },
{ "numpad_9", K_NUMPAD_9 },
{ "num_lock", K_NUMPAD_LOCK },
{ "numpad_lock", K_NUMPAD_LOCK },

{ "lights_mon_up", K_LIGHTS_MON_UP },
{ "lights_mon_down", K_LIGHTS_MON_DOWN },
Expand Down
3 changes: 3 additions & 0 deletions key/keycode.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ enum _MMKeyCode {
K_NUMPAD_7 = kVK_ANSI_Keypad7,
K_NUMPAD_8 = kVK_ANSI_Keypad8,
K_NUMPAD_9 = kVK_ANSI_Keypad9,
K_NUMPAD_LOCK = kVK_ANSI_KeypadClear,

K_AUDIO_VOLUME_MUTE = 1007,
K_AUDIO_VOLUME_DOWN = 1001,
Expand Down Expand Up @@ -162,6 +163,7 @@ enum _MMKeyCode {
K_NUMPAD_7 = K_NOT_A_KEY,
K_NUMPAD_8 = K_NOT_A_KEY,
K_NUMPAD_9 = K_NOT_A_KEY,
K_NUMPAD_LOCK = XK_Num_Lock,
K_MENU = K_NOT_A_KEY,

K_AUDIO_VOLUME_MUTE = XF86XK_AudioMute,
Expand Down Expand Up @@ -248,6 +250,7 @@ enum _MMKeyCode {
K_NUMPAD_7 = VK_NUMPAD7,
K_NUMPAD_8 = VK_NUMPAD8,
K_NUMPAD_9 = VK_NUMPAD9,
K_NUMPAD_LOCK = VK_NUMLOCK,

K_AUDIO_VOLUME_MUTE = VK_VOLUME_MUTE,
K_AUDIO_VOLUME_DOWN = VK_VOLUME_DOWN,
Expand Down

0 comments on commit 98987b8

Please sign in to comment.