Remove legacy keycodes, part 6 (#18740)
* `KC_RSHIFT` -> `KC_RSFT` * `KC_RCTRL` -> `KC_RCTL` * `KC_LSHIFT` -> `KC_LSFT` * `KC_LCTRL` -> `KC_LCTL`
This commit is contained in:
parent
39c22f5cf5
commit
74223c34a9
553 changed files with 1139 additions and 1151 deletions
|
@ -406,7 +406,7 @@ bool command_console_extra(uint8_t code)
|
|||
// convert keycode into ascii charactor
|
||||
static uint8_t code2asc(uint8_t code)
|
||||
{
|
||||
bool shifted = (get_mods() & (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))) ? true : false;
|
||||
bool shifted = (get_mods() & (MOD_BIT(KC_LSFT)|MOD_BIT(KC_RSFT))) ? true : false;
|
||||
switch (code) {
|
||||
case KC_A: return (shifted ? 'A' : 'a');
|
||||
case KC_B: return (shifted ? 'B' : 'b');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue