• 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: Apparent bug with button hotkeys that use shift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apparent bug with button hotkeys that use shift


  • Subject: Re: Apparent bug with button hotkeys that use shift
  • From: John Stiles <email@hidden>
  • Date: Mon, 07 Apr 2008 17:57:23 -0700

For any curious Apple engineers, I've just filed this issue as rdar://5848023 and attached a test app (four lines of code).


John Stiles wrote:
I am trying to add some hotkeys to buttons in my app, and I've hit a weird snag. Specifically, the shift modifier flag appears to be ignored for anything other than alphanumeric keys—i.e. I can't make a button that corresponds to "cmd+F1" and a second button that corresponds to "cmd+shift+F1". Instead, what happens is that when I press either cmd+F1 or cmd+shift+F1, the cmd+F1 button gets a simulated click in it—twice. Bizarre.

Interface Builder seems to disallow the shift modifier on a button hotkey for non-alphanumeric keys as well, which might be an implicit acknowledgment of the bug or perhaps a related oversight.

Is this a known bug, hopefully with a known workaround (other than "don't do that")?

I could kludge around the issue in a variety of ways, but so far I can't think of any kludges that will keep working if/when Apple actually fixes the bug, and I'd like to avoid revisiting the issue once 10.6 comes out :)

(My app allows the user to set hotkeys for some commands to whatever they want—I never would have guessed the amount of hoops I'd end up jumping through to make it happen...!)
_______________________________________________

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: 
 >Apparent bug with button hotkeys that use shift (From: John Stiles <email@hidden>)

  • Prev by Date: Re: How do I embed a font in an app?
  • Next by Date: fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles
  • Previous by thread: Apparent bug with button hotkeys that use shift
  • Next by thread: fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles
  • Index(es):
    • Date
    • Thread