Skip to content

Commit

Permalink
define to AUTO_SHIFT_DISABLED_AT_STARTUP (qmk#14201)
Browse files Browse the repository at this point in the history
Co-authored-by: agodinhost <agodinhost@globo.com>
  • Loading branch information
2 people authored and ptrxyz committed Nov 6, 2021
1 parent 73f3b76 commit 7af4d46
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion quantum/process_keycode/process_auto_shift.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
*
Expand Down

0 comments on commit 7af4d46

Please sign in to comment.