Apparent bug with button hotkeys that use shift
Apparent bug with button hotkeys that use shift
- Subject: Apparent bug with button hotkeys that use shift
- From: John Stiles <email@hidden>
- Date: Mon, 07 Apr 2008 17:34:37 -0700
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