What are cross-browser and cross-OS safe keyboard shortcuts usable for web application?

后端 未结 4 1562
独厮守ぢ
独厮守ぢ 2021-02-01 13:27

I am developing a quite large web application, and it is probably a good idea to use hotkeys for some common tasks. However, I discovered that finding safe key combinations is a

4条回答
  •  不思量自难忘°
    2021-02-01 13:59

    I don't think there is such a list. This may even be different for different locales.

    You can try to rely on the accesskey feature of HTML: http://www.w3.org/TR/html401/interact/forms.html#adef-accesskey. This should keep the number of collisions relatively small. Though I believe the Windows browsers will offer these keys as Alt+Letter which collides with the menu bar.

    Alternatively do what Google reader and Gmail do: use the letters directly without any hotkey modifier. That will only work for certain types of applications, though.

提交回复
热议问题