RESET -> QK_BOOT user keymaps (#17940)
This commit is contained in:
parent
e36ae90a65
commit
bbc3bc55f2
1495 changed files with 2006 additions and 1908 deletions
|
@ -68,7 +68,7 @@ static const keycodedescType PROGMEM keyselection[] = {
|
|||
{"C-A-D", KC_CAD}, // Ctrl-Alt-Del
|
||||
{"AltF4", KC_AF4},
|
||||
{"PLAY", KC_MEDIA_PLAY_PAUSE},
|
||||
{"FLASH", RESET}, // firmware flash mode
|
||||
{"FLASH", QK_BOOT}, // firmware flash mode
|
||||
};
|
||||
|
||||
#define MAX_KEYSELECTION sizeof(keyselection)/sizeof(keyselection[0])
|
||||
|
@ -93,7 +93,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
|||
switch (keycode) {
|
||||
case ENCFUNC:
|
||||
if (record->event.pressed) {
|
||||
selectedkey_rec.keycode == RESET ? reset_keyboard() : tap_code16(selectedkey_rec.keycode); // handle RESET code
|
||||
selectedkey_rec.keycode == QK_BOOT ? reset_keyboard() : tap_code16(selectedkey_rec.keycode); // handle QK_BOOT code
|
||||
} else {
|
||||
// when keycode is released
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue