Re: "Esc" doesn't work as a menu item key equivalent
Re: "Esc" doesn't work as a menu item key equivalent
- Subject: Re: "Esc" doesn't work as a menu item key equivalent
- From: John Stiles <email@hidden>
- Date: Fri, 17 Aug 2007 07:23:31 -0700
Probably the window eats Esc and reroutes it to the window's default
cancel button, because that is what Esc does on Mac OS.
Surprising that it would eat the Esc even if there is no default
cancel button.
On Aug 16, 2007, at 11:43 PM, Stephan Burlot wrote:
Hi,
The Esc key is recognized in your app if you close the window.
So the Esc key must be eaten in the responder chain. I didn't
investigate further, but it should be rather easy to fix.
I will not argue about the fact that the Esc key is not a good
choice for a menu key.
Stephan
Le 17 août 07 à 03:07, Nicolas Seriot a écrit :
Hello,
In InterfaceBuilder, I set Escape (\E) as a key equivalent for my
menu item.
When I hit escape, the relative IBAction is not called.
However, Fn-Esc calls it, on my MacBook Pro keyboard.
How can I have 'esc' work as a key equivalent ?
Minimal project demonstrating the problem : http://seriot.ch/temp/
MenuEscKey.zip
Thank you.
--
Nicolas Seriot
_______________________________________________
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:
40coriolis.ch
This email sent to email@hidden
_______________________________________________
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:
40blizzard.com
This email sent to email@hidden
_______________________________________________
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