4

I've recently remapped the Capslock key to Esc and it's great, but I also miss its actual functionality at times. So I wondered if it would be possible to make the Shift key behave as it does for keyboards on iOS, Android etc, where you just tap it twice and it behaves as the Capslock key until you double-tap it again.

I looked around on the internet and found nothing, looked around here and found this similar question, which addresses how to do it on Linux, and this one, which asks for the same procedure on Windows, but went unanswered. So here I am giving it another go.

Any ideas?

San Diago
  • 265

2 Answers2

1

I use AutoIT to add a hotkey. Now, you could do double-shift, but I would recommend a combination of keys instead. Capturing a key like shift with a hotkey program will cause plenty of other problems.

Tools for doing so:

  1. HotKeySet function in AutoIt
  2. Keybinding Forum Post

Hope this helps

Matthew Williams
  • 74
  • 1
  • 1
  • 9
1

So I thought Matthew Williams had a pretty good point about going with a combination of keys instead of a double-tap, and it turns out AutoHotKey makes doing this ridiculously trivial. I just created a .ahk file with the following content:

+Capslock::Capslock
Capslock::Esc

That's the file in its entirety and it solves the problem perfectly. The first line is a shortcut for a Shift + Capslock combination, and it means that, when I press it, it makes Capslock behave as a normal Capslock key, but when I just tap it once, it behaves like the Esc key, also as intended.

I had originally remapped the Capslock key to Esc with SharpKeys, but this is an infinitely simpler and better solution.

San Diago
  • 265