tags:

views:

41

answers:

1

Hello,

I'm trying to write an application that prevents certain key signals from propagating beyond the OS in OSX. To clarify, I want to make it so that it almost seems to the user that the key they are pushing on their keyboard is broken. So, the associated letter won't show up in a textarea, the key won't activate a function in another application, etc. Any ideas? Thanks in advance.

+3  A: 

You probably want to look into Quartz Event Taps. Note that your process will need to be running with "root" privileges to intercept events at the system level.

See also http://stackoverflow.com/questions/1776567/osx-quartz-event-taps-event-types-and-how-to-edit-events

David Gelhar
Thanks David. This looks perfect.
Josh