Menu accelerators - how not to fire them
Menu accelerators - how not to fire them
- Subject: Menu accelerators - how not to fire them
- From: Paul Fox <email@hidden>
- Date: Fri, 23 Aug 2002 10:23:16 +0000
If I define a menu accelerator, such that the glyphs show in the menu
then when I type that key, it activates the menu item. Which is to
be expected.
But I dont want to do that. In my appliaction, I intercept <Cmd-x> events
in sendEvent and patch them to look like non Cmd-x events so I can process
them in my keyDown method.
I dont want the menu to fire - I want to see what the key is and dispatch
myself.
Is there any way I can separate the visibility of the accelerator mnemonic
from the firing action?
The accelerators seem to take place at a lower level before I am ever
called, and I need to disable that so I can control what happens, e.g.
in modal actions of my app.
thanks
+-------------------------------------------------------------------------+
| CRiSP - Flexible editor | CRiSP, syn. for BRIEF |#
| | Internet: email@hidden |#
| If you get no reply for | WWW: (mine)
http://www.crisp.demon.co.uk |#
| support, please check your | WWW:
http://www.crisp.com |#
| Reply-To: email address. | WWW:
http://www.pacemaker.co.uk |#
+-------------------------------------------------------------------------+#
###########################################################################
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.