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:
parent
474c0bc8a2
commit
5629ba1807
362 changed files with 688 additions and 694 deletions
|
|
@ -85,8 +85,8 @@ static bool is_right_shift_pressed = false;
|
|||
// This will only work on linux with xkbmap option "compose:prsc"
|
||||
void press_umlaut_of(uint16_t keycode) {
|
||||
bool is_shift_pressed = (is_left_shift_pressed || is_right_shift_pressed);
|
||||
register_code(KC_PSCREEN);
|
||||
unregister_code(KC_PSCREEN);
|
||||
register_code(KC_PRINT_SCREEN);
|
||||
unregister_code(KC_PRINT_SCREEN);
|
||||
if (!is_shift_pressed) {
|
||||
register_code(KC_LSFT);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue