• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Keyboard Shortcut without Menu Item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Keyboard Shortcut without Menu Item (From: Matt Neuburg <email@hidden>)

  • Prev by Date: single-document application
  • Next by Date: Re: distribution app (was: disk image making)
  • Previous by thread: Re: Keyboard Shortcut without Menu Item
  • Next by thread: Relevance Ranking for String Comparison
  • Index(es):
    • Date
    • Thread