From 74223c34a969c0877bde035c721c21a1f25890fa Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 17 Oct 2022 00:14:40 +1100 Subject: Remove legacy keycodes, part 6 (#18740) * `KC_RSHIFT` -> `KC_RSFT` * `KC_RCTRL` -> `KC_RCTL` * `KC_LSHIFT` -> `KC_LSFT` * `KC_LCTRL` -> `KC_LCTL` --- users/moults31/obs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'users/moults31') diff --git a/users/moults31/obs.c b/users/moults31/obs.c index 0ae5f3deb4..a0d2ee5496 100644 --- a/users/moults31/obs.c +++ b/users/moults31/obs.c @@ -17,7 +17,7 @@ bool process_record_obs(uint16_t keycode, keyrecord_t *record) { // Apply all 4 mods for custom OBS macros - register_code(KC_LSHIFT); + register_code(KC_LSFT); register_code(KC_LCTL); register_code(KC_LALT); register_code(KC_LGUI); @@ -71,7 +71,7 @@ bool process_record_obs(uint16_t keycode, keyrecord_t *record) { } // Unpress all 4 mods for custom OBS macros - unregister_code(KC_LSHIFT); + unregister_code(KC_LSFT); unregister_code(KC_LCTL); unregister_code(KC_LALT); unregister_code(KC_LGUI); -- cgit v1.2.3 From bad8c5992bf68b6f2218b9b7a0b31c6ee7a03796 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 17 Oct 2022 23:45:23 +1100 Subject: Remove legacy sendstring keycodes (#18749) --- users/moults31/gdb.c | 2 +- users/moults31/vscode.c | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'users/moults31') diff --git a/users/moults31/gdb.c b/users/moults31/gdb.c index 42f5513eca..3b31d94159 100644 --- a/users/moults31/gdb.c +++ b/users/moults31/gdb.c @@ -45,7 +45,7 @@ bool process_record_gdb(uint16_t keycode, keyrecord_t *record) { break; case M_GDB_RESTART: if (record->event.pressed) { - SEND_STRING(SS_LCTRL(SS_LSFT(SS_TAP(X_F5)))); + SEND_STRING(SS_LCTL(SS_LSFT(SS_TAP(X_F5)))); } break; case M_GDB_STOP: diff --git a/users/moults31/vscode.c b/users/moults31/vscode.c index a2fcf062dc..7900e20431 100644 --- a/users/moults31/vscode.c +++ b/users/moults31/vscode.c @@ -21,67 +21,67 @@ bool process_record_vsc(uint16_t keycode, keyrecord_t *record) { switch (keycode) { case M_VSC_TERMFOCUS: if (record->event.pressed) { - SEND_STRING(SS_LCTRL("`")); + SEND_STRING(SS_LCTL("`")); } break; case M_VSC_SIDEBARFOCUS: if (record->event.pressed) { - SEND_STRING(SS_LCTRL("0")); + SEND_STRING(SS_LCTL("0")); } break; case M_VSC_SIDEBARCLOSE: if (record->event.pressed) { - SEND_STRING(SS_LCTRL("b")); + SEND_STRING(SS_LCTL("b")); } break; case M_VSC_FILECLOSE: if (record->event.pressed) { - SEND_STRING(SS_LCTRL("w")); + SEND_STRING(SS_LCTL("w")); } break; case M_VSC_FILENXT: if (record->event.pressed) { - SEND_STRING(SS_DOWN(X_LCTRL) SS_TAP(X_K) SS_TAP(X_PGDOWN) SS_UP(X_LCTRL)); + SEND_STRING(SS_DOWN(X_LEFT_CTRL) SS_TAP(X_K) SS_TAP(X_PAGE_DOWN) SS_UP(X_LEFT_CTRL)); } break; case M_VSC_FILEPRV: if (record->event.pressed) { - SEND_STRING(SS_DOWN(X_LCTRL) SS_TAP(X_K) SS_TAP(X_PGUP) SS_UP(X_LCTRL)); + SEND_STRING(SS_DOWN(X_LEFT_CTRL) SS_TAP(X_K) SS_TAP(X_PGUP) SS_UP(X_LEFT_CTRL)); } break; case M_VSC_DBGCNSLFOCUS: if (record->event.pressed) { - SEND_STRING(SS_LCTRL(SS_LALT(SS_TAP(X_D)))); + SEND_STRING(SS_LCTL(SS_LALT(SS_TAP(X_D)))); } break; case M_VSC_MVEDTRNXTGRP: if (record->event.pressed) { - SEND_STRING(SS_LCTRL(SS_LALT(SS_TAP(X_RIGHT)))); + SEND_STRING(SS_LCTL(SS_LALT(SS_TAP(X_RIGHT)))); } break; case M_VSC_MVEDTRPRVGRP: if (record->event.pressed) { - SEND_STRING(SS_LCTRL(SS_LALT(SS_TAP(X_LEFT)))); + SEND_STRING(SS_LCTL(SS_LALT(SS_TAP(X_LEFT)))); } break; case M_VSC_EDGRPNXT: if (record->event.pressed) { - SEND_STRING(SS_LCTRL(SS_LALT(SS_TAP(X_L)))); + SEND_STRING(SS_LCTL(SS_LALT(SS_TAP(X_L)))); } break; case M_VSC_EDGRPPRV: if (record->event.pressed) { - SEND_STRING(SS_LCTRL(SS_LALT(SS_TAP(X_K)))); + SEND_STRING(SS_LCTL(SS_LALT(SS_TAP(X_K)))); } break; case M_VSC_VIEWSIZEINC: if (record->event.pressed) { - SEND_STRING(SS_LCTRL(SS_LALT(SS_TAP(X_P)))); + SEND_STRING(SS_LCTL(SS_LALT(SS_TAP(X_P)))); } break; case M_VSC_VIEWSIZEDEC: if (record->event.pressed) { - SEND_STRING(SS_LCTRL(SS_LALT(SS_TAP(X_O)))); + SEND_STRING(SS_LCTL(SS_LALT(SS_TAP(X_O)))); } break; } -- cgit v1.2.3