Skip to main content
Share Your Experience: Take the 2024 Developer Survey
93 votes

Map capslock to control in Windows 10

There is now a solution directly from Microsoft for mapping caps lock to the control key called PowerToys. PowerToys does not involve using a third party tool or modifying the registry by hand (which ...
Snap Shot's user avatar
  • 2,278
25 votes

Map capslock to control in Windows 10

I use the following to send CTRL for the CAPS LOCK key, send ALT for the CTRL key, and send CAPS LOCK for the ALT key. CTRL is to the left of "A" where God intended it, ALT is below SHIFT, ...
mnemotronic's user avatar
14 votes

How do I swap the Windows and Control keys in Windows?

Warning This answer was first posted on 22/4/2017. Please verify that everything in it is still applicable, and make corrections to this answer, as needed. SharpKeys SharpKeys is a utility that ...
user2021355's user avatar
9 votes
Accepted

What is <buffer> used for on vim mapping?

It means the mapping only exists in the buffer where it was defined. If you switch to another buffer (file) the mapping does not work (exist) there. One example of why this is useful is for mappings ...
Heptite's user avatar
  • 19.9k
8 votes

Map capslock to control in Windows 10

I used to use AutoHotKey to do this. I'd have a link in the startup directory to run a very basic ahk script: Capslock::Ctrl The thing is, Autohotkey isn't run as Administrator so it won't affect ...
loxaxs's user avatar
  • 229
8 votes

Map capslock to control in Windows 10

The inexhaustible sysinternals toolbox also provides a little program just for switching capslock with control -- Ctrl2Cap Ctrl2cap is a kernel-mode device driver that filters the system's keyboard ...
Ernst's user avatar
  • 81
8 votes

Keytweak / Sharpkeys on Windows Doesn't Rekey

Solution 1: AutoHotkey Remapping AutoHotkey can be used for Remapping Keys and Buttons. However, consider AutoHotkey's limitation below. The script Capslock::q would make the Caps Lock behave like ...
Steven's user avatar
  • 28k
7 votes

Mapping Caps Lock to Escape and Control on Windows 7

Here is a registry entry that maps the caps lock to escape on windows 7. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:...
Stryker's user avatar
  • 201
7 votes

Map Caps Lock to change keyboard layout in Mac OS X

Expanding answer of @mrded for macOS Sierra. I used Karabiner-Elements to remap caps_lock to f19. To this end I placed the following file karabiner.json to ~/.karabiner.d/configuration: { "...
Ilya V. Schurov's user avatar
6 votes

How do I swap the Windows and Control keys in Windows?

Use PowerToys from Microsoft, it makes remapping any keyboard keys for windows 11 easier.
AzizStark's user avatar
  • 161
6 votes

Map capslock to control in Windows 10

This is the script to swap CTRL and CAPS LOCK keys: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,...
ady's user avatar
  • 161
5 votes

Map capslock to control in Windows 10

If, for some reason, you don't want to run third-party tools, it's possible to do this yourself with a bit of C. Thanks to Susam Pal's brilliant answer, I put the snippet below together. It's ...
kristianlm's user avatar
4 votes

How can I remap a play-button keypress from a Bluetooth headset on OS X?

First you will need a third party keyboard-remapping application called Karabiner (formerly KeyRemap4MacBook). The application is a bit user unfriendly but in theory you only need to do this once. ...
mattpr's user avatar
  • 266
4 votes

How to access Alt-Gr in Windows mode in a Kinesis Advantage keyboard?

I had a similar problem: I wanted to remap AltGr to a foot pedal and then have the upper thumb key row as Ctrl, Alt, Alt, Ctrl just like in the US layout. I also encountered the issue that during ...
Tassilo Horn's user avatar
3 votes

Emulate left mouse button with CapsLock key

The question does not specify the Windowing/Operating system (although one might be tempted to guess...), so for completeness this is the answer in (modern) X11: find keycode corresponding to ...
Radovan Garabík's user avatar
3 votes

Mac: How do I remap the context menu key on my keyboard to the command key?

In karabiner, you need to click "Change Key" then scroll down quite far to "For PC Users" click Application Key to Command_L
בנימן הגלילי's user avatar
3 votes
Accepted

Disable mouse using a key

$g:: Mouse_Blocked := true ; assign the Boolean value "true" or "1" to this variable BlockInput, MouseMove ; disable MouseMove return ; The #If directive creates context-sensitive hotkeys #If (...
Relax's user avatar
  • 3,655
3 votes

Change Alt-Right/Let shortcut in Windows to go to beginning/end of line like macOS

Never mind, I was able to figure it out. You can use Windows PowerToys, go into the Keyboard Manager settings, and easily remap any key combination to a single button. I just remapped Alt+Left/Right ...
Kiran's user avatar
  • 141
2 votes

Map Caps Lock to change keyboard layout in Mac OS X

It depends on the version of Mac OS X you are running (on 10.13.5 it's definitely possible). System settings -> Keyboard -> Input sources -> checkbox about Caps Lock
fend25's user avatar
  • 21
2 votes

How can I remap a keyboard key?

For Windows 10: PowerToys Microsoft has released an advanced application, PowerToys, that has a simple, but effective, key mapping facility. I've used it to swap my Alt and Ctrl keys; it works like a ...
fearless_fool's user avatar
2 votes

Mapping Caps Lock to Escape and Control on Windows 7

Actually I think I've built the perfect solution here: https://github.com/oblitum/Interception/blob/master/samples/caps2esc/caps2esc.cpp As a Vim user, this is a must for me, and I've been using it ...
oblitum's user avatar
  • 251
2 votes

Remapping CapsLock key

I was having the same problem and asked it over on AskUbuntu. The issue can be solved by: setting the preserve parameter edit /usr/share/X11/xkb/types/iso9995 and add preserve[Shift+LevelThree] = ...
Marcelo Avila's user avatar
2 votes

Mac: How do I remap the context menu key on my keyboard to the command key?

If you are using MacOS Sierra, you will need Karabiner Elements, rather than Karabiner. The window layout is somewhat different.
בנימן הגלילי's user avatar
2 votes

What's the best way to remap MS Ergonomic keyboard on OSX?

macOS Sierra does not fully recognize the Microsoft Surface Ergonomic Keyboard as a keyboard, but a workaround exists. Install Karabiner Elements. It lets you intercept and remap keyboard input. ...
Well Actually's user avatar
2 votes

Mapping Caps Lock to Escape and Control on Windows 7

I was looking for something as similar to this, but unfortunately the AHK scripts from the answers here didn't work well for me. However, I found a solution that solved this for me on the vim wiki. ...
curious-cat's user avatar
2 votes

Map capslock to control in Windows 10

You can use lswitch to remap language input to CapsLock. Use any key to switch input languages, usage: lswitch [keycode]. Keycode is optional and defaults to context menu key. Another good candidate ...
Andrew K.'s user avatar
  • 121

Only top scored, non community-wiki answers of a minimum length are eligible