• 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: Matt Neuburg <email@hidden>
  • Date: Wed, 29 Mar 2006 10:25:58 -0800
  • Thread-topic: Keyboard Shortcut without Menu Item

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.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
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

  • Follow-Ups:
    • Re: Keyboard Shortcut without Menu Item
      • From: Jeremy Dronfield <email@hidden>
  • Prev by Date: unit testing NSDocument
  • Next by Date: Replacing default CFAllocator breaks application?
  • Previous by thread: Re: Keyboard Shortcut without Menu Item
  • Next by thread: Re: Keyboard Shortcut without Menu Item
  • Index(es):
    • Date
    • Thread