From 2721022078c30dd00c1063e4a2f8199b2b53e0d5 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 23 Jul 2013 10:56:03 +0900 Subject: Add mechanical locking switch support for NumLock and ScrollLock --- common/keycode.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'common/keycode.h') diff --git a/common/keycode.h b/common/keycode.h index 77d5b79baf..08c3cbf42b 100644 --- a/common/keycode.h +++ b/common/keycode.h @@ -60,10 +60,11 @@ along with this program. If not, see . #define KC_DEL KC_DELETE #define KC_INS KC_INSERT #define KC_CAPS KC_CAPSLOCK +#define KC_CLCK KC_CAPSLOCK #define KC_RGHT KC_RIGHT #define KC_PGDN KC_PGDOWN #define KC_PSCR KC_PSCREEN -#define KC_SLCK KC_SCKLOCK +#define KC_SLCK KC_SCROLLLOCK #define KC_PAUS KC_PAUSE #define KC_BRK KC_PAUSE #define KC_NLCK KC_NUMLOCK @@ -82,6 +83,8 @@ along with this program. If not, see . #define KC_NUHS KC_NONUS_HASH #define KC_NUBS KC_NONUS_BSLASH #define KC_LCAP KC_LOCKING_CAPS +#define KC_LNUM KC_LOCKING_NUM +#define KC_LSCR KC_LOCKING_SCROLL #define KC_ERAS KC_ALT_ERASE, #define KC_CLR KC_CLEAR /* Japanese specific */ @@ -230,7 +233,7 @@ enum hid_keyboard_keypad_usage { KC_F11, KC_F12, KC_PSCREEN, - KC_SCKLOCK, + KC_SCROLLLOCK, KC_PAUSE, KC_INSERT, KC_HOME, -- cgit v1.2.3