Note that there are some explanatory texts on larger screens.

plurals
  1. PORemove items from Opera's Spatial Navigation flow?
    primarykey
    data
    text
    <p>I've come a bit stuck this afternoon with a bug in my web application in the latest version of Opera.</p> <p>Usually, it is possible to remove elements from the markup's tab-index flow by giving it the attribute:</p> <pre><code>tabindex="-1" </code></pre> <p>This means that when someone comes to the page and starts hitting their 'tab' key they will traverse the anchors/inputs in the document but those elements with -1 assigned will be ignored.</p> <p>However, Opera's spatial navigation flow still allows users to access those elements via their keyboard.</p> <p>Does anybody know of an alternate way of removing elements from Opera's spatial navigation flow in the same way that elements can in other browsers using tab-key document traversal?</p> <p>Specifically: removing anchors from being accessible via Opera rather than inputs.</p> <p>The markup below gives a rudimentary example. In non-Opera browsers you can use the tab key to go through the list, but it skips links 3, 4, and 7 because they have tabindex = -1 set. In Opera using spatial navigation (Ctrl+down/up arrow) it will still focus on those links..</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;style&gt; :focus{border: 1px dashed green} &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;Link 1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Link 2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" tabindex="-1"&gt;Link 3 (tabindex -1)&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" tabindex="-1"&gt;Link 4 (tabindex -1)&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Link 5&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Link 6&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" tabindex="-1"&gt;Link 7 (tabindex -1)&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Link 8&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Link 9&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload