Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Swap caps lock and control key positions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Swap caps lock and control key positions
Authored by: cryptlib on Nov 09, '03 05:06:32AM

How did you find out which keycode corresponds to enter and escape? Myself, I'd rather have the tilde key generate escape and the enter key generate tilde, because escape to the left of 1 is how god intended Vi to be used.



[ Reply to This | # ]
10.3: Swap caps lock and control key positions
Authored by: n8gray on Nov 10, '03 05:13:43PM

If you poke around in the ADB keyboard source code you should be able to find a list of keycodes. IIRC only the modifier keys are listed explicitly. To figure out the code for ~ I think you'll have to do some experimentation.



[ Reply to This | # ]
10.3: Swap caps lock and control key positions
Authored by: snark on Nov 11, '03 05:04:47AM

Use good old (classic) ResEdit and edit a KCHR Ressource. It shows, which ADB code correspond to which key.

Also, if you only want to remap non-modifiers, creating a new KCHR ressource with ResEdit and storing its ressource fork in the data fork of a file ~/Library/KeybiardLayouts/MyLayout.rsrc does the trick even better - without patching anything in /System.
You can then select your new Layout in SystemPrefs-> Languages -> Keyboard



[ Reply to This | # ]