• 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: Trapping Keystrokes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trapping Keystrokes


  • Subject: Re: Trapping Keystrokes
  • From: glenn andreas <email@hidden>
  • Date: Tue, 13 Dec 2005 11:00:23 -0600


On Dec 13, 2005, at 10:38 AM, Louis Sinclair wrote:

We're using the menuHasKeyEquivalent function to trap certain keystrokes to execute commands within an application, but we're having problems.

In particular, the handling of the spacebar is proving to be inconsistent from machine to machine (all running OS X 10.4.2.) On some machines, menuHasKeyEquivalent does not get called when space is hit, on others it does.

Is there a low level way to trap keystrokes before the FirstResponder gets ahold of it?

Thanks!


--
Louis Sinclair
Minnetonka Audio Software, Inc.

Subclass NSApplication and override "sendEvent:"


Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets

_______________________________________________
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: 
 >Trapping Keystrokes (From: Louis Sinclair <email@hidden>)

  • Prev by Date: graphicsContextWithBitmapImageRep: with flipped view (continued with sample code)
  • Next by Date: Re: NSOutlineView update strangeness
  • Previous by thread: Trapping Keystrokes
  • Next by thread: graphicsContextWithBitmapImageRep: with flipped view (continued with sample code)
  • Index(es):
    • Date
    • Thread