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

Re: Scroll Lock button press event (PC keyboard)


  • Subject: Re: Scroll Lock button press event (PC keyboard)
  • From: Nick <email@hidden>
  • Date: Sat, 15 Dec 2012 17:49:31 +0200

figured this out.
PC's Scroll lock is F14 on mac keyboards, and the tap wasn't called,
because it was assigned as a hotkey for adjusting brightness.



2012/12/15 Nick <email@hidden>

> No, nothing lights up. In fact, the only LED on my PC keyboard that can
> light up in Mac OS from keypresses is the Caps Lock.
> I am wondering if I could use IOKit to get Scroll lock keypress event,
> though?.
>
>
> 2012/12/15 Kyle Sluder <email@hidden>
>
>> On Dec 14, 2012, at 5:55 PM, Nick <email@hidden> wrote:
>>
>> > 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?
>>
>> Open the Keyboard Viewer (you might need to turn on the Input Languages
>> menu extra in System Preferences). Does anything light up when you press
>> the Scroll Lock key?
>>
>> If yes, use that key's virtual key code. If not, you're sunk.
>>
>> --Kyle Sluder
>
>
>
_______________________________________________

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

References: 
 >Scroll Lock button press event (PC keyboard) (From: Nick <email@hidden>)
 >Re: Scroll Lock button press event (PC keyboard) (From: Nick <email@hidden>)

  • Prev by Date: Re: CALayer UIImage rendered on top of content instead of below
  • Next by Date: How does Dropbox autorun work?
  • Previous by thread: Re: Scroll Lock button press event (PC keyboard)
  • Next by thread: How does Dropbox autorun work?
  • Index(es):
    • Date
    • Thread