• 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: Disabling key bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling key bindings


  • Subject: Re: Disabling key bindings
  • From: Shayne Wissler <email@hidden>
  • Date: Thu, 5 Mar 2009 13:18:31 -0700

On Thu, Mar 5, 2009 at 12:17 PM, Ken Thomases <email@hidden> wrote:

> On Mar 5, 2009, at 11:59 AM, Shayne Wissler wrote:
>
>  I have an application in which the user's normal OSX key bindings are
>> meaningless, and while they are in that application I would like to detect
>> any keyboard event. Right now I am using KeyDown, KeyUp, and FlagsChanged,
>> but these of course are subject to the user's key bindings.
>>
>
> No, they're not.  These deal in raw keyboard events.


So why don't I get events for F1-F4, F7-12? I was assuming it was because
they were bound, evidently there's a different level of key binding going
on?


> In fact, the key bindings technology is all about invoking action methods
> specific to a given key function, so almost by definition they wouldn't be
> keyDown:, keyUp: and flagsChanged:.  Now, the key bindings stuff is done
> within keyDown:, but only if you so choose.
>
> See <
> http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/HandlingKeyEvents/chapter_6_section_3.html
> >.
>
>
Thanks for the link.


Shayne Wissler
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Disabling key bindings
      • From: Ken Thomases <email@hidden>
References: 
 >Disabling key bindings (From: Shayne Wissler <email@hidden>)
 >Re: Disabling key bindings (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: [Q] NSObject's poseAsClass - Replacement?
  • Next by Date: Re: Disabling key bindings
  • Previous by thread: Re: Disabling key bindings
  • Next by thread: Re: Disabling key bindings
  • Index(es):
    • Date
    • Thread