mtk
mtk

Reputation: 13707

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

Upvotes: 6

Views: 12168

Answers (2)

C. Finny
C. Finny

Reputation: 11

<a href="#U" id="AU" name="U" title="右上方功能區塊" accesskey="U" tabindex="3">:::</a>

Give it a name="U",and href="#U" name=href, and Chrome will work.

Upvotes: 1

Jukka K. Korpela
Jukka K. Korpela

Reputation: 201728

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.

Upvotes: 15

Related Questions