key remapper
key remapper
- Subject: key remapper
- From: Robert Nikander <email@hidden>
- Date: Mon, 13 Oct 2008 23:46:54 -0400
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden