Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've had a similar problem, where I wanted to press <kbd>+</kbd> on the numpad to tab to the next field. Now I've released a library that I think will help you.</p> <blockquote> <p><a href="https://joelpurra.com/projects/plusastab/" rel="nofollow noreferrer">PlusAsTab</a>: A jQuery plugin to use the numpad plus key as a tab key equivalent.</p> </blockquote> <p>Since you want <kbd>enter</kbd>/<kbd>&crarr;</kbd> instead, you can set the options. Find out which key you want to use with the <a href="https://api.jquery.com/event.which/" rel="nofollow noreferrer">jQuery event.which demo</a>.</p> <pre class="lang-js prettyprint-override"><code>JoelPurra.PlusAsTab.setOptions({ // Use enter instead of plus // Number 13 found through demo at // https://api.jquery.com/event.which/ key: 13 }); </code></pre> <p>Sample HTML</p> <pre class="lang-html prettyprint-override"><code>&lt;!-- Enable enter as tab as the default for all fields in this form --&gt; &lt;form data-plus-as-tab="true"&gt; &lt;input type="text" value="Enter skips to the next field" autofocus="autofocus" /&gt; &lt;!-- Exclude this textarea --&gt; &lt;textarea data-plus-as-tab="false"&gt;Enter works as usual&lt;/textarea&gt; &lt;input type="text" value="Enter skips to the next field" /&gt; &lt;select&gt;&lt;option&gt;Enter skips here too&lt;/option&gt;&lt;/select&gt; &lt;!-- Exclude this submit button --&gt; &lt;button type="submit" data-plus-as-tab="false"&gt;Enter works as usual&lt;/button&gt; &lt;/form&gt; </code></pre> <p>As you can see, it's easy to enable all elements in a container with <code>data-plus-as-tab="true"</code>, and it's easy to exclude specific elements with <code>data-plus-as-tab="false"</code>. You can also exclude certain types (on existing elements) from javascript with <code>$('textarea, :button').plusAsTab(false);</code>.</p> <p>You can try it out yourself in the <a href="https://joelpurra.com/projects/plusastab/docs/example/enter-as-tab.html" rel="nofollow noreferrer">PlusAsTab enter as tab demo</a>.</p>
    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.
    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