Getting the Command key modifier for a NSView
Getting the Command key modifier for a NSView
- Subject: Getting the Command key modifier for a NSView
- From: "Mike Davis" <email@hidden>
- Date: Wed, 22 Aug 2001 14:19:30 -0400
I'm trying to get keys for a NSView with keyDown: but I don't get the keys
when the Command modifier is pressed. The view is firstResponder.
I've read the documentation, in particular for NSView, NSWindow,
NSResponder and NSApplication but whatever I seem to do the menu bar gets
the Command key events instead of me.
My view itself is running in a sheet from an inspector panel and the
application is NSDocument based. Basically, when my panel/view is key, I
don't want *any* other view getting the key events.
Any ideas?
Mike.