summaryrefslogtreecommitdiff
path: root/users/art
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-10-14 04:28:14 +1100
committerGitHub <noreply@github.com>2022-10-13 18:28:14 +0100
commit5629ba18077ee5dcde72e497ddf46d848817dd5c (patch)
tree36e95fe41e63586903b220461d8c7d623f069c61 /users/art
parent474c0bc8a2886077fa8dbdb4a8a7a57f4e1291d1 (diff)
Remove legacy keycodes, part 4 (#18683)
* `KC_PGDOWN` -> `KC_PGDN` * `KC_PSCREEN` -> `KC_PSCR` * `KC_SCOLON` -> `KC_SCLN` * `KC_BSLASH` -> `KC_BSLS` * `KC_BSPACE` -> `KC_BSPC`
Diffstat (limited to 'users/art')
-rw-r--r--users/art/art.c18
-rw-r--r--users/art/funcs/string_funcs.c4
2 files changed, 11 insertions, 11 deletions
diff --git a/users/art/art.c b/users/art/art.c
index 151249ec3f..f96a5d6cfd 100644
--- a/users/art/art.c
+++ b/users/art/art.c
@@ -64,7 +64,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
//Checking all other non-backspace keys to clear the backspace buffer. This is to prevent the bug of deleting N chars sometime after using a macro
switch (keycode) {
case LT(COMBOS,KC_BSPC):
- case KC_BSPACE:
+ case KC_BACKSPACE:
case KC_DEL:
case KC_LSFT:
case KC_RSFT:
@@ -537,7 +537,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
bool shifted = get_mods() & MOD_MASK_SHIFT;
clear_mods();
- press_n_times(15, KC_BSPACE);
+ press_n_times(15, KC_BACKSPACE);
send_string_with_translation("heckout ");
char_to_bspace = 13;
if (shifted) {
@@ -553,7 +553,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
bool shifted = get_mods() & MOD_MASK_SHIFT;
clear_mods();
- press_n_times(15, KC_BSPACE);
+ press_n_times(15, KC_BACKSPACE);
send_string_with_translation("ommit ");
char_to_bspace = 11;
layer_off(GIT_C);
@@ -616,7 +616,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
break;
case G_RBASE:
if (!record->event.pressed) {
- press_n_times(18, KC_BSPACE);
+ press_n_times(18, KC_BACKSPACE);
send_string_with_translation("base -i ");
char_to_bspace = 14;
layer_off(GIT_R);
@@ -624,7 +624,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
break;
case G_RVERT:
if (!record->event.pressed) {
- press_n_times(18, KC_BSPACE);
+ press_n_times(18, KC_BACKSPACE);
send_string_with_translation("vert ");
char_to_bspace = 11;
layer_off(GIT_R);
@@ -635,7 +635,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
bool shifted = get_mods() & MOD_MASK_SHIFT;
clear_mods();
- press_n_times(18, KC_BSPACE);
+ press_n_times(18, KC_BACKSPACE);
send_string_with_translation("set ");
char_to_bspace = 10;
@@ -654,7 +654,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
break;
case G_SHOW:
if (!record->event.pressed) {
- press_n_times(16, KC_BSPACE);
+ press_n_times(16, KC_BACKSPACE);
send_string_with_translation("how ");
char_to_bspace = 9;
layer_off(GIT_S);
@@ -665,7 +665,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
bool shifted = get_mods() & MOD_MASK_SHIFT;
clear_mods();
- press_n_times(16, KC_BSPACE);
+ press_n_times(16, KC_BACKSPACE);
send_string_with_translation("tash ");
char_to_bspace = 10;
@@ -681,7 +681,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
break;
case G_STAT:
if (!record->event.pressed) {
- press_n_times(16, KC_BSPACE);
+ press_n_times(16, KC_BACKSPACE);
send_string_with_translation("tatus ");
char_to_bspace = 11;
layer_off(GIT_S);
diff --git a/users/art/funcs/string_funcs.c b/users/art/funcs/string_funcs.c
index d3a177a1b1..3cf35356e1 100644
--- a/users/art/funcs/string_funcs.c
+++ b/users/art/funcs/string_funcs.c
@@ -95,7 +95,7 @@ combo_t key_combos[] = {
[ED_F10] = COMBO(combo_f10, KC_F10),
[ED_F11] = COMBO(combo_f11, KC_F11),
[ED_F12] = COMBO(combo_f12, KC_F12),
- [ED_PSCREEN] = COMBO(combo_pscreen, KC_PSCREEN),
+ [ED_PSCREEN] = COMBO(combo_pscreen, KC_PRINT_SCREEN),
[ED_CS_ENTER] = COMBO_ACTION(done_sm),
#endif
@@ -169,7 +169,7 @@ bool handle_del_bspace(void) {
layer_off(GIT_R);
layer_off(GIT_S);
- press_n_times(char_to_bspace, KC_BSPACE);
+ press_n_times(char_to_bspace, KC_BACKSPACE);
char_to_bspace = 1;
press_n_times(char_to_del, KC_DEL);
char_to_del = 0;