Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used to use swapped Ctrl and Caps for editing files in Emacs under Windows XP, so I have Ctrl function bind to Caps. Now I've got a new machine, and old traveled to another man, who wants to have native bindings. Is there a way to swap them back?

share|improve this question

migrated from Apr 12 '11 at 22:18

This question came from our site for professional and enthusiast programmers.

When giving a computer to someone else, you should erase all personal information. With Windows, that means a complete reinstallation. That also eliminates your problem. – Svante Apr 12 '11 at 15:13

The easy answer is, run regedit, navigate to the following registry directory: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout

and delete the Scancode Map, which, if all you've done is flip the Ctrl-L and Caps-Lock keys, should have the following value:

00000000 00000000 03000000 3A001D00 1D003A00 00000000

CAUTION: deleting the scancode map will also delete any other key mappings you've created. For a better understanding of how the Scancode Map works, consult MSDN's article on its scan code mapper:

share|improve this answer

A safe way to remap your keys is to use a program like KeyTweak. It does the registry work for you.

share|improve this answer

You must log in to answer this question.