Re: possible to tab through buttons and other controls?
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