Re: "Space" key equivalent for menu items
Re: "Space" key equivalent for menu items
- Subject: Re: "Space" key equivalent for menu items
- From: Cliff Russell <email@hidden>
- Date: Mon, 22 Apr 2002 17:36:51 -0700
This is an incomplete investigation, but it might help solve your
problem.
I found in Menu.h (in the Carbon headers) the following constants:
...
kMenuSpaceGlyph
...
kMenuF1Glyph
...
to be used with Get/SetMenuItemKeyGlyph
There *should* be someway to use theses Glyphs from Cocoa.
- Cliff
On Monday, April 22, 2002, at 02:37 PM, Ben Kennedy wrote:
On 09,04,02 at 6:12 pm -0400, Brian Webster wrote:
Is there anything I'm doing wrong? Is this just not supported
(in spite
of what IB implies) or is this a bug? Anyone know how to work
around it?
The Command-Space key combination is reserved by the system for
switching between scripts (Roman, Japanese, Korean, etc.) and
cannot be used by applications. IB should probably disallow
using space as a key equivalent to reflect this.
I am facing the same challenge as the original poster: I want to
indicate the space bar as the action key in a menu item. I don't care
about modifiers (my app will catch the plain space key and dispatch the
action), but I want to indicate to the user that the space bar is the
key
to press, and facilitate the same action via a menu item.
So, I want the literal text "space" to appear in the right-hand side of
the menu item. Can I achieve this somehow?
(similarly, if I wanted to indicate something like "F1" for the F1 key,
how would I cause it to appear in the menuitem?)
-ben
--
Ben Kennedy, chief magician
zygoat creative technical services
613-228-3392 | 1-866-466-4628
http://www.zygoat.ca
_______________________________________________
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.
- Cliff
_______________________________________________
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.