summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorWoody <1218459+agodinhost@users.noreply.github.com>2021-11-01 19:11:55 -0300
committerGitHub <noreply@github.com>2021-11-02 09:11:55 +1100
commitf775da96b17ceec66bac279434325b4da5cb9467 (patch)
treee3f272c061a3e2bfbf5662b0e5564421e02e5c16 /quantum
parenta29ca1e7f1a5addfde163b158399684505453fc9 (diff)
downloadqmk_firmware-f775da96b17ceec66bac279434325b4da5cb9467.tar.gz
qmk_firmware-f775da96b17ceec66bac279434325b4da5cb9467.zip
define to AUTO_SHIFT_DISABLED_AT_STARTUP (#14201)
Co-authored-by: agodinhost <agodinhost@globo.com>
Diffstat (limited to 'quantum')
-rw-r--r--quantum/process_keycode/process_auto_shift.c8
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 51b0efdb47..cc3a974ea8 100644
--- a/quantum/process_keycode/process_auto_shift.c
+++ b/quantum/process_keycode/process_auto_shift.c
@@ -21,6 +21,12 @@
# include "process_auto_shift.h"
+#ifndef AUTO_SHIFT_DISABLED_AT_STARTUP
+# define AUTO_SHIFT_STARTUP_STATE true /* enabled */
+#else
+# define AUTO_SHIFT_STARTUP_STATE false /* disabled */
+#endif
+
static uint16_t autoshift_time = 0;
static uint16_t autoshift_timeout = AUTO_SHIFT_TIMEOUT;
static uint16_t autoshift_lastkey = KC_NO;
@@ -34,7 +40,7 @@ static struct {
bool in_progress : 1;
// Whether the auto-shifted keypress has been registered.
bool holding_shift : 1;
-} autoshift_flags = {true, false, false, false};
+} autoshift_flags = {AUTO_SHIFT_STARTUP_STATE, false, false, false};
/** \brief Record the press of an autoshiftable key
*