1
0
Fork 0

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`
This commit is contained in:
Ryan 2022-10-14 04:28:14 +11:00 committed by GitHub
parent 474c0bc8a2
commit 5629ba1807
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
362 changed files with 688 additions and 694 deletions

View file

@ -11,7 +11,7 @@ void seq_start(void) {
bool seq_feed(uint16_t keycode) {
if (keycode == KC_ENTER) {
for (int i = 0; i < buffer_size + 1; i++) {
tap_code(KC_BSPACE);
tap_code(KC_BACKSPACE);
}
for (int i = 0; i < seq_config_size; i++) {
seq_t item = seq_config[i];
@ -21,7 +21,7 @@ bool seq_feed(uint16_t keycode) {
}
buffer_size = 0;
return false;
} else if (keycode == KC_BSPACE) {
} else if (keycode == KC_BACKSPACE) {
if (buffer_size) {
buffer_size--;
tap_code(keycode);