Skip to content

Commit

Permalink
adds support for equals key on numpad
Browse files Browse the repository at this point in the history
  • Loading branch information
smithkyle committed Mar 2, 2024
1 parent 3a02763 commit 55d5189
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 @@ -158,6 +158,7 @@ enum _MMKeyCode {
K_NUMPAD_8 = kVK_ANSI_Keypad8,
K_NUMPAD_9 = kVK_ANSI_Keypad9,
K_NUMPAD_DECIMAL = kVK_ANSI_KeypadDecimal,
K_NUMPAD_EQUAL = kVK_ANSI_KeypadEquals,

K_AUDIO_VOLUME_MUTE = 1007,
K_AUDIO_VOLUME_DOWN = 1001,
Expand Down Expand Up @@ -331,6 +332,7 @@ enum _MMKeyCode {
K_NUMPAD_8 = XK_KP_8,
K_NUMPAD_9 = XK_KP_9,
K_NUMPAD_DECIMAL = XK_KP_Decimal,
K_NUMPAD_EQUAL = XK_KP_Equal,

K_AUDIO_VOLUME_DOWN = XF86XK_AudioLowerVolume,
K_AUDIO_VOLUME_UP = XF86XK_AudioRaiseVolume,
Expand Down Expand Up @@ -540,6 +542,7 @@ enum _MMKeyCode {
K_NUMPAD_8 = VK_NUMPAD8,
K_NUMPAD_9 = VK_NUMPAD9,
K_NUMPAD_DECIMAL = VK_DECIMAL,
K_NUMPAD_EQUAL = K_NOT_A_KEY,

K_AUDIO_VOLUME_MUTE = VK_VOLUME_MUTE,
K_AUDIO_VOLUME_DOWN = VK_VOLUME_DOWN,
Expand Down
1 change: 1 addition & 0 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ static KeyNames key_names[] =
{"numpad_8", K_NUMPAD_8},
{"numpad_9", K_NUMPAD_9},
{"numpad_decimal", K_NUMPAD_DECIMAL},
{"numpad_equal", K_NUMPAD_EQUAL},
{"enter", K_ENTER},
{"clear", K_CLEAR},

Expand Down

0 comments on commit 55d5189

Please sign in to comment.