site_archiver@lists.apple.com Delivered-To: Darwin-kernel@lists.apple.com User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914) Hi, You can use KeyRemap4MacBook to remap keys only some applications. http://www.pqrs.org/tekezo/macosx/keyremap4macbook/index.html The latest version has the following setting, and you can also add new settings quickly. http://www.pqrs.org/tekezo/macosx/keyremap4macbook/files/KeyRemap4MacBook-5.... http://www.pqrs.org/tekezo/macosx/keyremap4macbook/files/KeyRemap4MacBook-5.... - Remapping for Applications - Enable at only Terminal - Remap Command_L to Option_L Regards, Takayama Fumihiko
Hi,
I'm trying to write a kernel extension that remaps certain keys for a certain application. (Specifically, I want to switch Command and Option
in Terminal.app. The system preferences let you do this, but only for all applications.) I haven't written kernel extensions before. I've got one working that can remap keys for all applications. I did this by putting new functions in the _keyboardEventAction fields in the IOHIKeyboard objects. The new function changes the arguments before passing them through to the original _keyboardEventAction.
Now, the missing piece... how can I find out which application is in the foreground?
thanks,
Rob
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Takayama Fumihiko