Skip to content

Commit 7af4d46

Browse files
agodinhostagodinhost
authored andcommitted
define to AUTO_SHIFT_DISABLED_AT_STARTUP (qmk#14201)
Co-authored-by: agodinhost <[email protected]>
1 parent 73f3b76 commit 7af4d46

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

quantum/process_keycode/process_auto_shift.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121

2222
# include "process_auto_shift.h"
2323

24+
#ifndef AUTO_SHIFT_DISABLED_AT_STARTUP
25+
# define AUTO_SHIFT_STARTUP_STATE true /* enabled */
26+
#else
27+
# define AUTO_SHIFT_STARTUP_STATE false /* disabled */
28+
#endif
29+
2430
static uint16_t autoshift_time = 0;
2531
static uint16_t autoshift_timeout = AUTO_SHIFT_TIMEOUT;
2632
static uint16_t autoshift_lastkey = KC_NO;
@@ -34,7 +40,7 @@ static struct {
3440
bool in_progress : 1;
3541
// Whether the auto-shifted keypress has been registered.
3642
bool holding_shift : 1;
37-
} autoshift_flags = {true, false, false, false};
43+
} autoshift_flags = {AUTO_SHIFT_STARTUP_STATE, false, false, false};
3844

3945
/** \brief Record the press of an autoshiftable key
4046
*

0 commit comments

Comments
 (0)