diff options
Diffstat (limited to 'quantum/process_keycode/process_auto_shift.c')
-rw-r--r-- | quantum/process_keycode/process_auto_shift.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_auto_shift.c b/quantum/process_keycode/process_auto_shift.c index 51b0efdb4..cc3a974ea 100644 --- a/quantum/process_keycode/process_auto_shift.c +++ b/quantum/process_keycode/process_auto_shift.c | |||
@@ -21,6 +21,12 @@ | |||
21 | 21 | ||
22 | # include "process_auto_shift.h" | 22 | # include "process_auto_shift.h" |
23 | 23 | ||
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 | |||
24 | static uint16_t autoshift_time = 0; | 30 | static uint16_t autoshift_time = 0; |
25 | static uint16_t autoshift_timeout = AUTO_SHIFT_TIMEOUT; | 31 | static uint16_t autoshift_timeout = AUTO_SHIFT_TIMEOUT; |
26 | static uint16_t autoshift_lastkey = KC_NO; | 32 | static uint16_t autoshift_lastkey = KC_NO; |
@@ -34,7 +40,7 @@ static struct { | |||
34 | bool in_progress : 1; | 40 | bool in_progress : 1; |
35 | // Whether the auto-shifted keypress has been registered. | 41 | // Whether the auto-shifted keypress has been registered. |
36 | bool holding_shift : 1; | 42 | bool holding_shift : 1; |
37 | } autoshift_flags = {true, false, false, false}; | 43 | } autoshift_flags = {AUTO_SHIFT_STARTUP_STATE, false, false, false}; |
38 | 44 | ||
39 | /** \brief Record the press of an autoshiftable key | 45 | /** \brief Record the press of an autoshiftable key |
40 | * | 46 | * |