1
0
Fork 0

Normalise Auto Shift keycodes (#18892)

* Normalise Auto Shift keycodes

* Add keycode table to main list

* Add old keycodes to legacy header
This commit is contained in:
Ryan 2022-10-28 23:53:15 +11:00 committed by GitHub
parent 2ff1d85290
commit 22be7e79ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 104 additions and 76 deletions

View file

@ -375,24 +375,24 @@ bool process_auto_shift(uint16_t keycode, keyrecord_t *record) {
}
switch (keycode) {
case KC_ASTG:
case AS_TOGG:
autoshift_toggle();
break;
case KC_ASON:
case AS_ON:
autoshift_enable();
break;
case KC_ASOFF:
case AS_OFF:
autoshift_disable();
break;
# ifndef AUTO_SHIFT_NO_SETUP
case KC_ASUP:
case AS_UP:
autoshift_timeout += 5;
break;
case KC_ASDN:
case AS_DOWN:
autoshift_timeout -= 5;
break;
case KC_ASRP:
case AS_RPT:
autoshift_timer_report();
break;
# endif