Tab to button in window

I have, what appears, to be a simple query, although it appears that few people have had the issue ("tab+to+button"+xcode

I have a number of text fields on a window and a button

tabbing (pressing tab to navigate) works well, although it never tabs to the button, but to the first text field again.

What am I missing? Is it a case of calling a proc when leaving a text field by way of tab or enter that makes the button the first responder (and, if so, how do I make the button a first responder? By giving it a referencing outlet name of “bob” and saying Tell bob to makeFirstResponder_(missing value)")

Many thanks in advance :slight_smile:


the behavior depends on the global “Full Keyboard Access” setting in System Preferences > Keyboard

Cheers Stefan. The value can be changed by:

defaults write ~/Library/Preferences/.GlobalPreferences.plist AppleKeyboardUIMode -int 0 (off - its default state)
defaults write ~/Library/Preferences/.GlobalPreferences.plist AppleKeyboardUIMode -int 2 (on)

the change is instant, and is reflected as such in the System Preferences UI