Add tabindex / focus to buttons in Safari without changing default browser preferences

Alex G picture Alex G · Mar 17, 2015 · Viewed 7.2k times · Source

When navigating a form using the keyboard, button elements don't gain focus in Safari (tested in v8.0 on Yosemite). This is unless tabbing is explicitly turned under Preferences --> Advanced. Is there any way to get around this?

http://codepen.io/alexandtheweb/pen/raQrxw

Answer

unobf picture unobf · Mar 17, 2015

There is no way to get around this. The user needs to enable these preferences in order for tabbing to work correctly.