Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Apr 12 '11 at 22:18

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

4  
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
add comment

2 Answers

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:

http://msdn.microsoft.com/en-us/windows/hardware/gg463447.aspx

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.