Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Safari tabbing focus doesn't work in 5.1.2

Tags:

focus

safari

When I keep pressing tab key, it only focuses through the form elements (like input, button) but not through anchor tags.

It was working fine in ver 5.0.5. This behavior is noticed in latest version 5.1.2.

like image 568
Chetan Avatar asked Jan 05 '12 18:01

Chetan


People also ask

Does focus work on Safari?

Apple is making it possible for apps, including Safari and Mail, to filter out content based on your focus mode in iOS 16.

How do I set my tab to focus?

Setting the value to “-1” also allows you to programmatically enable tab focus. Say you have an element that you don't want focusable on page load but after some event, you'd like to be focusable—you'd use tabindex=“-1” and the “. focus()” function to add that behavior.

What does Tabindex 0 mean?

tabindex="0" means that the element should be focusable in sequential keyboard navigation, after any positive tabindex values and its order is defined by the document's source order.


2 Answers

If you go under the advanced preferences in Safari and check "Press Tab to highlight each item on a webpage" it works.

like image 95
j08691 Avatar answered Sep 22 '22 16:09

j08691


There are two ways for a user to fix this.

1. The main fix for this is to adjust the Accessibility options. Apple Menu > System Preferences > Keyboard > Shortcuts Tab > Full keyboard access: In windows and dialogs, press Tab to move the keyboard focus between: Choose the "All controls" radio button. This allows Safari, as well as other applications, to gain tab focus on buttons and other UI elements.

Full Keyboard Access

2. Additionally, you can adjust this in Safari's advanced preferences as noted in j08691's answer.

like image 39
Benxamin Avatar answered Sep 18 '22 16:09

Benxamin