Re: Keyboard Shortcut without Menu Item
Re: Keyboard Shortcut without Menu Item
- Subject: Re: Keyboard Shortcut without Menu Item
- From: Jeremy Dronfield <email@hidden>
- Date: Thu, 30 Mar 2006 10:01:27 +0100
On 29 Mar 2006, at 7:25 pm, Matt Neuburg wrote:
On Tue, 28 Mar 2006 19:58:09 +0200, Philip Dow <email@hidden> said:
[posted a couple days ago but it didn't seem to come through,
apologies for double post if the case]
iTunes includes a keyboard shortcut for selecting the search field,
command-option-f. As far as I can tell, this keyboard shortcut does
not belong to a menu item anywhere on the main menu bar. How does one
go about implementing a keyboard shortcut without including a menu
item for it? I've seen an approach that subclasses NSApplication and
overrides sendEvent:. Is there another way?
What I do is put a hidden button in the window. The button is a
special
subclass of NSButton that can't be clicked (just in case the user
should
click that region of the window accidentally). m.
Do you mean borderless rather than hidden? A button concealed with -
setHidden: can't be clicked anyway.
Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden