• 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
Re: Problems with keyboard shortcuts without modifiers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with keyboard shortcuts without modifiers


  • Subject: Re: Problems with keyboard shortcuts without modifiers
  • From: j o a r <email@hidden>
  • Date: Tue, 12 Feb 2008 11:47:39 -0800


On Feb 12, 2008, at 8:39 AM, David Simpson wrote:

I have a few keyboard shortcuts in my application that do not require any
modifier to use. These work fine in my main window. When I open another,
very simple window that has an NSTextField (its opened through an
NSWindowController), if i hit a shortcut key as I type into that text field,
it invokes the shortcut and does not enter into the text field.


These shortcuts are set up in your main menu, right?
Unfortunately I don't think that there is a simple solution for this problem.


A couple of suggestions for workarounds that might, or might not, work in your case:

* Add some hacks to your menu item validation to make sure that your non-modifier items are disabled when your non-main windows are key.

* Add a NSApplication subclass and override "-sendEvent:" to control who sees these shortcuts first.

I hope that I'm wrong, and that someone else posts a better solution to this problem, but if I'm not, I suggest that you file a bug report / enhancement request with Apple:

	<http://developer.apple.com/bugreporter/>

j o a r


_______________________________________________

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


References: 
 >Problems with keyboard shortcuts without modifiers (From: "David Simpson" <email@hidden>)

  • Prev by Date: Re: @property problem
  • Next by Date: Re: Repetitive Appending of Strings
  • Previous by thread: Problems with keyboard shortcuts without modifiers
  • Next by thread: Repetitive Appending of Strings
  • Index(es):
    • Date
    • Thread