• 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
Scroll Lock button press event (PC keyboard)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scroll Lock button press event (PC keyboard)


  • Subject: Scroll Lock button press event (PC keyboard)
  • From: Nick <email@hidden>
  • Date: Sat, 15 Dec 2012 03:55:43 +0200

Hello
I need to intercept a scroll lock key event (that can be found on most of
 PC keyboards).
It seems that AppKit framework does not pass any NSEvent's to the
application when this button is pressed.
Neither works addGlobalMonitorForEventsMatchingMask (access for assistive
devices is enabled). I tried the mask NSFlagsChangedMask|NSKeyPressedMask -
the block gets invoked when any button is pressed, except the scroll lock.

Is it possible at all to get a notification in my app when scroll lock is
pressed? Using IOKit maybe?

I need to monitor this event system-wide (i.e, not only when my application
window is the key window).

Thank you.
_______________________________________________

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

  • Prev by Date: Re: How to capture a video stream
  • Next by Date: Re: Correct way to make mutable and immutable objects?
  • Previous by thread: Re: Correct way to make mutable and immutable objects?
  • Next by thread: Re: Scroll Lock button press event (PC keyboard)
  • Index(es):
    • Date
    • Thread