From 55d51896b6c33d55384995e940a761a5e0c964cf Mon Sep 17 00:00:00 2001 From: Kyle Smith Date: Sat, 2 Mar 2024 14:25:48 -0800 Subject: [PATCH] adds support for equals key on numpad --- src/keycode.h | 3 +++ src/main.cc | 1 + 2 files changed, 4 insertions(+) diff --git a/src/keycode.h b/src/keycode.h index fa6fd8b..8ffc437 100644 --- a/src/keycode.h +++ b/src/keycode.h @@ -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, @@ -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, @@ -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, diff --git a/src/main.cc b/src/main.cc index 4aa858a..7fab60f 100644 --- a/src/main.cc +++ b/src/main.cc @@ -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},