• 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: possible to tab through buttons and other controls?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possible to tab through buttons and other controls?


  • Subject: Re: possible to tab through buttons and other controls?
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 6 Apr 2005 17:37:55 -0500

On 06 avr. 2005, at 14:31, Luc Vandal wrote:

Hi!

From what I understand, it's only possible to tab between text fields or other controls that are text-related? It's not possible to tab through buttons on Mac? If that's possible, can anyone tell me how to do it?

On Apr 6, 2005, at 4:39 PM, Bertrand Landry Hetu wrote:

It is possible if you enable the "Full Keyboard Access" option in the Keyboard Shortcuts section of the Keyboard & Mouse preference panel. Now I'm not sure if you get any notifications of such things, but if there is anything it will be in the Accessibility APIs.

I don't believe there are any notifications. However, you shouldn't have to do anything if using standard Cocoa widgets; it will just work.


If doing custom widgets, you will want to listen for notifications such as when your windows become key. You also typically override becomeFirstResponder and resignFirstResponder. From all such methods you will send the setKeyboardFocusRingNeedsDisplayInRect: message as needed.

See /Examples/AppKit/ClockControl for what to do. Note that if you switch out of the app to System Preferences, change the full keyboard access setting, and return to the app, the correct thing happens.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
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: 
 >possible to tab through buttons and other controls? (From: Luc Vandal <email@hidden>)
 >Re: possible to tab through buttons and other controls? (From: Bertrand Landry Hetu <email@hidden>)

  • Prev by Date: Re: WWDC 2005 - Is the value worth the price? (OT)
  • Next by Date: Re: Porting to Win32
  • Previous by thread: Re: possible to tab through buttons and other controls?
  • Next by thread: show dock & autohide menubar
  • Index(es):
    • Date
    • Thread