This shows you the differences between two versions of the page.
notices:interfaces-riches-javascript:permettre-le-controle-des-scripts-a-la-fois-a-la-souris-et-au-clavier [02 December 2013 at 09:52] Sébastien Delorme (Atalan) |
notices:interfaces-riches-javascript:permettre-le-controle-des-scripts-a-la-fois-a-la-souris-et-au-clavier [02 December 2013 at 09:53] (current) Sébastien Delorme (Atalan) |
||
---|---|---|---|
Line 10: | Line 10: | ||
<note attention>**Warning** | <note attention>**Warning** | ||
- | Whenever possible, use generic event listeners methods rather than specific ones for a keyboard button. For example, use ''onfocus''/''onblur'' rather than ''onkeydown''. | + | Whenever possible, use generic event listeners rather than specific ones for a keyboard button. For example, use ''onfocus''/''onblur'' rather than ''onkeydown''. |
This is important because keyboard shortcuts are not always the same on different systems and browsers. For example, in the Opera browser, the ''Shift'' key, together with the arrow keys, allows the user to navigate from one link to another. However, most other browsers use the ''Tab'' key for this shortcut.</note> | This is important because keyboard shortcuts are not always the same on different systems and browsers. For example, in the Opera browser, the ''Shift'' key, together with the arrow keys, allows the user to navigate from one link to another. However, most other browsers use the ''Tab'' key for this shortcut.</note> |