Tuesday, December 19, 2006

I use the Tab key all the time. From navigating between input fields in applications to indenting my code. But sometimes when I press it it doesn't work. Instead I just start getting everything I type in capital letters.

That's the Tab keys little brother. His evil little brother whose only purpose in life seems to be to get in my way and annoy me. Why would I want to enable a permanent inversion of the capitalization of everything I type? I wouldn't. It's as useful as a "13375p34k" key that changes everything to geekish. It's of no practical use. If I want to write in all caps to yell at some bonehead in a forum I'll keep the shift key down. Or I'll select the text I wrote normally (but with a lot of aggrevation and hostility) and run the "Make Uppercase" command in my editor.

So I don't want it anymore. I could physically rip the key off of the keyboard, but I don't want go to that extreme. So that's why I hit google and found this way to just relieve it from its duty.

There's a registry key that lets you remap keyboard scan codes to other codes. So all you need to do is map the scancode of the caps lock key to something else, and the beast is tamed. I ended up choosing to map it to work just like a second Tab key. So when I miss the real Tab, its little brother is there to help instead of mess things up.

I created a .reg file that contains this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,0f,00,3a,00,00,00,00,00

Once you change this in the registry you will need to reboot before it takes effect.

If you want more details and a list of possible scan codes check out this page.

posted on 12/19/2006 1:16:59 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [1]

Related Posts:
Windows Forms UserControls in IE
Combine() only two paths?
Refactorings
Debugger.Launch()
Microformats
Projector trouble