> > >> So why don't I get events for F1-F4, F7-12? I was assuming it was because >> they were bound, evidently there's a different level of key binding going >> on? >> > > I suspect you would if you used the "fn" key with them.
For F1-F4, it works as you suspect. For F8-F12, even holding FN doesn't let them pass through. > In System Preferences, Keyboard & Mouse pane, Keyboard tab, take a look at > the "Use all F1, F2, etc. keys as standard function keys" checkbox. Unless > that is checked, the function keys you refer to are acting as "hardware" > keys. When I set that option, it simply inverts the FN behavior, which has no effect on keys F8-F12, interestingly enough. The pane says "Use all F1, F2, etc. keys standard function keys..." Evidently, "etc." stands for "F3, F4." ;) Also, when I make the caps lock key act as an additional control, then the caps lock keycode is also not sent via KeyDown/Up anymore. > > > This is not part of the Cocoa key bindings technology. It's happening at a > lower level than that. You can check to see if a Quartz Event Tap gives you > access to those key events, but even that might not. OK, thanks. Maybe that's what I'm supposed to be using for my purposes? > Another thing to be aware of is the Keyboard Shortcuts tab of that > preference pane. Shortcuts assigned there are also not part of the Cocoa > key bindings system, but you do have some more control over them. If you > override -[NSApplication sendEvent:] you can see those key events and even > prevent their normal processing. So there are really 3 key bindings systems to be aware of then. Shayne Wissler _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com