• 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
VO keyboard double-click issue in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

VO keyboard double-click issue in Cocoa


  • Subject: VO keyboard double-click issue in Cocoa
  • From: Jonah Petri <email@hidden>
  • Date: Tue, 2 Mar 2010 09:57:49 -0500

Hello,

I'm working on accessorizing my Cocoa app, and there's one piece of interface which, for reasons I'll omit for brevity, would be much more accessible if they could accept a double-click.

In the voiceover "interaction commands" help, it says: 

Click the item under the mouse cursor:
VO-Shift-Space bar
Press once for a single mouse click and two times to double-click.

However, I find that the events that I'm getting when I mash that key chord don't ever look like a double-click.  If I print the NSEvent I receive:

NSEvent: type=LMouseDown loc=(235,33) time=1299585.6 flags=0 win=0x0 winNum=41824 ctxt=0x0 evNum=0 click=1 buttonNumber=0 pressure=1
NSEvent: type=LMouseDown loc=(235,33) time=1299585.7 flags=0 win=0x0 winNum=41824 ctxt=0x0 evNum=0 click=1 buttonNumber=0 pressure=1
NSEvent: type=LMouseDown loc=(235,33) time=1299585.8 flags=0 win=0x0 winNum=41824 ctxt=0x0 evNum=0 click=1 buttonNumber=0 pressure=1
NSEvent: type=LMouseDown loc=(235,33) time=1299585.9 flags=0 win=0x0 winNum=41824 ctxt=0x0 evNum=0 click=1 buttonNumber=0 pressure=1

Compare that to the events received when I actually use the mouse to double-click:

NSEvent: type=LMouseDown loc=(241,33) time=1299577.1 flags=0x100 win=0x0 winNum=41824 ctxt=0x0 evNum=-30410 click=1 buttonNumber=0 pressure=1
NSEvent: type=LMouseDown loc=(241,33) time=1299577.3 flags=0x100 win=0x0 winNum=41824 ctxt=0x0 evNum=-30409 click=2 buttonNumber=0 pressure=1

Note the 2nd click has a click count of two.  Any advice?  I'm hoping that I don't have to recreate my own click-count timer.

-Jonah
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Next by Date: Enabling VoiceOver after loading of nib
  • Next by thread: Enabling VoiceOver after loading of nib
  • Index(es):
    • Date
    • Thread