1
0
Fork 0

RESET -> QK_BOOT user keymaps (#17940)

This commit is contained in:
Joel Challis 2022-08-21 23:55:30 +01:00 committed by GitHub
parent e36ae90a65
commit bbc3bc55f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1495 changed files with 2006 additions and 1908 deletions

View file

@ -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
}