Skip navigation.
 
mlRe: possible to tab through buttons and other controls?
FROM : Ricky Sharp
DATE : Thu Apr 07 00:37:55 2005

> 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_removed>
Instant Interactive(tm)  http://www.instantinteractive.com

Related mailsAuthorDate
mlpossible to tab through buttons and other controls? Luc Vandal Apr 6, 23:31
mlRe: possible to tab through buttons and other controls? Bertrand Landry He… Apr 6, 23:39
mlRe: possible to tab through buttons and other controls? Ricky Sharp Apr 7, 00:37