• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Troubles using command [ and ] keys for navigation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How can I implement labels without the overhead of an NSTextField?
  • Next by Date: [Moderator] Re: How can I implement labels without the overhead of an NSTextField?
  • Previous by thread: [Moderator] Re: How can I implement labels without the overhead of an NSTextField?
  • Next by thread: buggy WebKit behavior
  • Index(es):
    • Date
    • Thread