Skip to content

Commit

Permalink
Remove legacy locking caps/num/scroll keycodes (#18601)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Oct 5, 2022
1 parent ee0a2b5 commit d1b6b06
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions layouts/community/ergodox/osx_neo2/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,9 +687,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if ((capslock_state & MOD_MASK_SHIFT) == MOD_MASK_SHIFT) {
// CAPSLOCK is currently active, disable it
if (host_keyboard_leds() & (1 << USB_LED_CAPS_LOCK)) {
unregister_code(KC_LOCKING_CAPS);
unregister_code(KC_LOCKING_CAPS_LOCK);
} else {
register_code(KC_LOCKING_CAPS);
register_code(KC_LOCKING_CAPS_LOCK);
}
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS,
KC_TRNS,KC_TRNS,KC_TRNS,
// Right Hand
KC_TRNS, KC_TRNS, KC_LOCKING_NUM, KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_MINUS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS, KC_TRNS,
KC_TRNS, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_PLUS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_KP_1, KC_KP_2, KC_KP_3, KC_ENTER, KC_TRNS,
KC_KP_0, KC_KP_0, KC_KP_DOT, KC_ENTER, KC_TRNS,
KC_TRNS, KC_TRNS, KC_LNUM, KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_MINUS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS, KC_TRNS,
KC_TRNS, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_PLUS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_KP_1, KC_KP_2, KC_KP_3, KC_ENTER, KC_TRNS,
KC_KP_0, KC_KP_0, KC_KP_DOT, KC_ENTER, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS
Expand Down
6 changes: 3 additions & 3 deletions layouts/community/planck_mit/guidoism/keys.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@
"KC_RALT": "\u2325",
"KC_RGUI": "\u2318",
"KC_RCMD": "\u2318",
"KC_LOCKING_CAPS": "Locking Caps Lock",
"KC_LOCKING_CAPS_LOCK": "Locking Caps Lock",
"KC_LCAP": "Locking Caps Lock",
"KC_LOCKING_NUM": "Locking Num Lock",
"KC_LOCKING_NUM_LOCK": "Locking Num Lock",
"KC_LNUM": "Locking Num Lock",
"KC_LOCKING_SCROLL": "Locking Scroll Lock",
"KC_LOCKING_SCROLL_LOCK": "Locking Scroll Lock",
"KC_LSCR": "Locking Scroll Lock",
"KC_INT4": "JIS Henkan",
"KC_HENK": "JIS Henkan",
Expand Down
3 changes: 0 additions & 3 deletions quantum/keycode_legacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
#define KC__MUTE KC_KB_MUTE
#define KC__VOLUP KC_KB_VOLUME_UP
#define KC__VOLDOWN KC_KB_VOLUME_DOWN
#define KC_LOCKING_CAPS KC_LOCKING_CAPS_LOCK
#define KC_LOCKING_NUM KC_LOCKING_NUM_LOCK
#define KC_LOCKING_SCROLL KC_LOCKING_SCROLL_LOCK
#define KC_LANG1 KC_LANGUAGE_1
#define KC_LANG2 KC_LANGUAGE_2
#define KC_LANG3 KC_LANGUAGE_3
Expand Down

0 comments on commit d1b6b06

Please sign in to comment.