<p><ahref="#page_Using-Auto-Shift-Setup">Using Auto Shift Setup</a></p>
<ulclass="TableOfContents">
<li>
<p><ahref="#page_Setup">Setup</a></p>
</li>
<li>
<p><ahref="#page_Use">Use</a></p>
<ulclass="TableOfContents">
<li>
<p><ahref="#page_An-Example-Run">An Example Run</a></p>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<h1id="page_Auto-Shift-Why-Do-We-Need-a-Shift-Key">Auto Shift: Why Do We Need a Shift Key?</h1>
<p>Tap a key and you get its character. Tap a key, but hold it <em>slightly</em> longer
and you get its shifted state. Voilà! No shift key needed!</p>
<h2id="page_Why-Auto-Shift">Why Auto Shift?</h2>
<p>Many people suffer from various forms of RSI. A common cause is stretching your
fingers repetitively long distances. For us on the keyboard, the pinky does that
all too often when reaching for the shift key. Auto Shift looks to alleviate that
problem.</p>
<h2id="page_How-Does-It-Work">How Does It Work?</h2>
<p>When you tap a key, it stays depressed for a short period of time before it is
then released. This depressed time is a different length for everyone. Auto Shift
defines a constant <code>AUTO_SHIFT_TIMEOUT</code> which is typically set to twice your
normal pressed state time. When you press a key, a timer starts and then stops
when you release the key. If the time depressed is greater than or equal to the
<code>AUTO_SHIFT_TIMEOUT</code>, then a shifted version of the key is emitted. If the time
is less than the <code>AUTO_SHIFT_TIMEOUT</code> time, then the normal state is emitted.</p>
<h2id="page_Are-There-Limitations-to-Auto-Shift">Are There Limitations to Auto Shift?</h2>
<p>Yes, unfortunately.</p>
<ol>
<li>Key repeat will cease to work. For example, before if you wanted 20 'a'
characters, you could press and hold the 'a' key for a second or two. This no
longer works with Auto Shift because it is timing your depressed time instead
of emitting a depressed key state to your operating system.</li>
<li>You will have characters that are shifted when you did not intend on shifting, and
other characters you wanted shifted, but were not. This simply comes down to
practice. As we get in a hurry, we think we have hit the key long enough
for a shifted version, but we did not. On the other hand, we may think we are
tapping the keys, but really we have held it for a little longer than
anticipated.</li>
</ol>
<h2id="page_How-Do-I-Enable-Auto-Shift">How Do I Enable Auto Shift?</h2>
<p>Add to your <code>rules.mk</code> in the keymap folder:</p>
<pre><code>AUTO_SHIFT_ENABLE = yes
</code></pre>
<p>If no <code>rules.mk</code> exists, you can create one.</p>
<p>Then compile and install your new firmware with Auto Key enabled! That's it!</p>
<h2id="page_Modifiers">Modifiers</h2>
<p>By default, Auto Shift is disabled for any key press that is accompanied by one or more
modifiers. Thus, Ctrl+A that you hold for a really long time is not the same
as Ctrl+Shift+A.</p>
<p>You can re-enable Auto Shift for modifiers by adding another rule to your <code>rules.mk</code></p>
<pre><code>AUTO_SHIFT_MODIFIERS = yes
</code></pre>
<p>In which case, Ctrl+A held past the <code>AUTO_SHIFT_TIMEOUT</code> will be sent as Ctrl+Shift+A</p>
<h2id="page_Configuring-Auto-Shift">Configuring Auto Shift</h2>
<p>If desired, there is some configuration that can be done to change the
behavior of Auto Shift. This is done by setting various variables the
<code>config.h</code> file located in your keymap folder. If no <code>config.h</code> file exists, you can create one.</p>
<p>A sample is</p>
<pre><code>#ifndef CONFIG_USER_H
#define CONFIG_USER_H
#include "../../config.h"
#define AUTO_SHIFT_TIMEOUT 150
#define NO_AUTO_SHIFT_SPECIAL
#endif
</code></pre>
<h3id="page_AUTO-_-SHIFT-_-TIMEOUT-Value-in-ms">AUTO_SHIFT_TIMEOUT (Value in ms)</h3>
<p>This controls how long you have to hold a key before you get the shifted state.
Obviously, this is different for everyone. For the common person, a setting of
135 to 150 works great. However, one should start with a value of at least 175, which
is the default value. Then work down from there. The idea is to have the shortest time required to get the shifted state without having false positives.</p>
<p>Play with this value until things are perfect. Many find that all will work well
at a given value, but one or two keys will still emit the shifted state on
occasion. This is simply due to habit and holding some keys a little longer
than others. Once you find this value, work on tapping your problem keys a little
quicker than normal and you will be set.</p>
<p>{% hint style='info' %}
Auto Shift has three special keys that can help you get this value right very
quick. See "Auto Shift Setup" for more details!