diff options
author | Ryan <fauxpark@gmail.com> | 2022-10-16 08:29:43 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-15 22:29:43 +0100 |
commit | 5e4b076af3c99d36632d6b92f3ddd046f38a01af (patch) | |
tree | ed704dea66f5a16e364efc39a48abeb63c8226ba /keyboards/tronguylabs/m122_3270 | |
parent | 92d7964b285cf852d702cc4dea7e21e838f118a2 (diff) |
Remove legacy keycodes, part 5 (#18710)
* `KC_SLCK` -> `KC_SCRL`
* `KC_NLCK` -> `KC_NUM`
Diffstat (limited to 'keyboards/tronguylabs/m122_3270')
-rw-r--r-- | keyboards/tronguylabs/m122_3270/keymaps/default/keymap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/keyboards/tronguylabs/m122_3270/keymaps/default/keymap.c b/keyboards/tronguylabs/m122_3270/keymaps/default/keymap.c index 04866e35ef..812b6406ee 100644 --- a/keyboards/tronguylabs/m122_3270/keymaps/default/keymap.c +++ b/keyboards/tronguylabs/m122_3270/keymaps/default/keymap.c @@ -126,7 +126,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } } else { // This assumes that the Linux Compose has been set to Scroll Lock if (record->event.pressed) { - tap_code16(KC_SLCK); + tap_code16(KC_SCRL); SEND_STRING("c/"); } } @@ -194,17 +194,17 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { case JM_NSLC: if (left_shift_down || right_shift_down) { if (record->event.pressed) { - register_code(KC_NLCK); + register_code(KC_NUM_LOCK); } else { - unregister_code(KC_NLCK); + unregister_code(KC_NUM_LOCK); } } else { if (record->event.pressed) { - register_code(KC_SLCK); + register_code(KC_SCRL); } else { - unregister_code(KC_SLCK); + unregister_code(KC_SCRL); } } return false; |