Troubles using command [ and ] keys for navigation
Troubles using command [ and ] keys for navigation
- Subject: Troubles using command [ and ] keys for navigation
- From: Arthur Clemens <email@hidden>
- Date: Mon, 13 Dec 2004 02:37:11 +0100
There is strange behavior when using command-[ and ] and the main menu.
I have a record set that I want to navigate with command-[ and
command-] keys, analog to Safari's Previous and Next History
navigation.
I have a NSWindow subclass that implements -
(void)sendEvent:(NSEvent*)anEvent (so I can also catch if there is a
key-repeat, that speeds up traversing the set).
This works fine, until I use the main menu. From then on, sendEvent
doesn't recognize the keyDown together with the command key, in
combination with these [ and ] keys. It does recognize other key
combinations, like command-dot.
At the same time I see that the method - (BOOL)menu:(NSMenu*)menu
updateItem:(NSMenuItem *)item atIndex:(int)index
shouldCancel:(BOOL)shouldCancel is called each time I use command-[ or
], still only after having used the main menu.
Are [ and ] reserved keys for the main menu?
Arthur Clemens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden