If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I've been looking for a way to swap the caps and ctrl key
because the control key is ergonically inconvient for emacs
and the terminal. I also know some people want to remap
other keys as well. Is it possible to write a program
or kernel extension to catch the key down event and then
resent it out as another key value? Should we write
kernel extension? If not, can a user level program listen
to system event when it's running in the background.
Post your idea here.
Originally posted by nomorewindows:
<STRONG>I've been looking for a way to swap the caps and ctrl key
because the control key is ergonically inconvient for emacs
and the terminal. I also know some people want to remap
other keys as well. Is it possible to write a program
or kernel extension to catch the key down event and then
resent it out as another key value? Should we write
kernel extension? If not, can a user level program listen
to system event when it's running in the background.
Post your idea here.</STRONG>
Create a file that contains :
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
and then in the terminal :
xmodmap name_of_file
that works under linux, can't test it now on osx. To come back, just do xmodmap name again.
Your best chance is to modify the USB keyboard driver that is available through Darwin CVS.
That way, Cocoa, Carbon, Classic and BSD all get the fix.
PowerBook G4 17"
Power Mac G4/800, 1Gb RAM, 80Gb HDD, Superdrive, GeForce 4MX, Gateway 21" CRT, Apple Pro Speakers, iSub - Running Mac OS X Server 10.2
iBook 500, 192MbRAM - Running Mac OS X 10.2
iPod 5Gb