forked from mirrors/qmk_userspace
feat: infinite timeout for leader key (#6580)
* feat: implement leader_no_timeout logic * docs(leader_key): infinite leader timeout docs
This commit is contained in:
parent
8f5cc8d762
commit
26b9b3aa23
3 changed files with 25 additions and 2 deletions
|
@ -49,7 +49,10 @@ bool process_leader(uint16_t keycode, keyrecord_t *record) {
|
|||
// Leader key set-up
|
||||
if (record->event.pressed) {
|
||||
if (leading) {
|
||||
if (timer_elapsed(leader_time) < LEADER_TIMEOUT) {
|
||||
# ifndef LEADER_NO_TIMEOUT
|
||||
if (timer_elapsed(leader_time) < LEADER_TIMEOUT)
|
||||
# endif // LEADER_NO_TIMEOUT
|
||||
{
|
||||
# ifndef LEADER_KEY_STRICT_KEY_PROCESSING
|
||||
if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)) {
|
||||
keycode = keycode & 0xFF;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue