Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML accesskey 'e' not working in Chrome

I assigned access key e to email input field in a simple html form. I am currently testing this in chrome. So on pressing Alt + e, instead of switching focus to the email input field, the Chrome menu get activated.

How should I go around with this? How to gain focus to the input element on pressing Alt + e.

Any ideas?

Thanks

like image 978
mtk Avatar asked Jul 30 '12 18:07

mtk


People also ask

How does accesskey work in HTML?

The accesskey attribute specifies a shortcut key to activate/focus an element. However, in most browsers the shortcut can be set to another combination of keys. Tip: The behavior if more than one element has the same access key differs: IE, Firefox: The next element with the pressed access key will be activated.

How do I use Chrome access key?

For Chrome: Use Alt + [accesskey] (Windows/Linux), or Control + Option + [Accesskey] (Mac). For Safari: Use Alt + [accesskey] (Windows/Linux), or Control + Option + [Accesskey] (Mac).


1 Answers

The implementation of accesskey attributes is browser-dependent, see some of the variation.

It also interferes with the built-in accesskey assignments that browsers or assistive software may have. It is therefore not recommended by accessibility specialists.

On my Chrome, an element with accesskey="e" attribute gets focused on, when I use Alt-Shift-E. But I would not have known if I had not checked it.

like image 94
Jukka K. Korpela Avatar answered Sep 23 '22 08:09

Jukka K. Korpela