• 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
Menu shortcuts without modifiers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Menu shortcuts without modifiers?


  • Subject: Menu shortcuts without modifiers?
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 17 Sep 2009 21:29:44 +0200

Hi,

I have an app that contains a QTMovieView. I've set things up so people can use the arrow keys to skip, fast forward, rewind, use space to play/pause etc., as they're used to from other movie-playing apps. Now, I'd like to add menu items that correspond to these actions for people who don't know the shortcuts. I'd also like to show the shortcuts in the menu items, so people know the shortcuts are there.

Trouble is: If I set e.g. the space key as a menu item's shortcut and a text field has keyboard focus, the space key goes to the menu, not to the text field.

I don't want to disable the menu item, as even if there's a text field with keyboard focus, the user may want to use the menu to pause etc. Is there a way to make any control get the shortcut *before* the menus? Is there a way to disable only the shortcut, but still have it displayed? Is there a way to fake the shortcut, so I can do the actual handling at a different level? (Carbon lets you set the menu shortcut glyph separately from the actual shortcut, for example).

Anyone have an idea for a solution?

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Menu shortcuts without modifiers?
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: settings to build for 10.5 on 10.6?
  • Next by Date: Re: How to create subentity object inheriting from superentity object in core data
  • Previous by thread: NSValueTransformer problem with NSTextField update
  • Next by thread: Re: Menu shortcuts without modifiers?
  • Index(es):
    • Date
    • Thread