[Core] Add Repeat Key ("repeat last key") as a core feature. (#19700)
Co-authored-by: casuanoob <96005765+casuanoob@users.noreply.github.com> Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
This commit is contained in:
parent
e1766df185
commit
3993b15f05
29 changed files with 2508 additions and 6 deletions
|
@ -176,7 +176,7 @@ void soft_reset_keyboard(void) {
|
|||
|
||||
/* Convert record into usable keycode via the contained event. */
|
||||
uint16_t get_record_keycode(keyrecord_t *record, bool update_layer_cache) {
|
||||
#ifdef COMBO_ENABLE
|
||||
#if defined(COMBO_ENABLE) || defined(REPEAT_KEY_ENABLE)
|
||||
if (record->keycode) {
|
||||
return record->keycode;
|
||||
}
|
||||
|
@ -273,6 +273,9 @@ bool process_record_quantum(keyrecord_t *record) {
|
|||
// Must run asap to ensure all keypresses are recorded.
|
||||
process_dynamic_macro(keycode, record) &&
|
||||
#endif
|
||||
#ifdef REPEAT_KEY_ENABLE
|
||||
process_last_key(keycode, record) && process_repeat_key(keycode, record) &&
|
||||
#endif
|
||||
#if defined(AUDIO_ENABLE) && defined(AUDIO_CLICKY)
|
||||
process_clicky(keycode, record) &&
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue