[webaccessibile] ancora onclick onkeypress

Simone Onofri simone.onofri a gmail.com
Lun 25 Set 2006 08:50:29 CEST


Il 25/09/06, Luca Mascaro <info a lucamascaro.info> ha scritto:
>
> > grazie Luca, ma... in soldoni? :)
>
> come ti ho detto la mia prova non è completa, su IE 5.5 ma già su mac non
> va
>
> <a href="#" id="link">test</a>
> <script>
>        document.getElementById("link").onkeypress = function(e){
>                if(e.keyCode == 13 || e.keyCode == 32) {
>                        alert(e.keyCode);
>                }
>        }
> </script>
>
> > gli sviluppatori con cui sto lavorando sostengono che la barra
> spaziatrice
> > dovrebbe essere riservata per le funzionalità previste dai browsers e
> non
> > dovrebbe essere utilizzata per attivare i link, quindi: con "onkeypress"
> vi
> > sembra più corretto escludere tutti i tasti tranne Enter o escluderli
> tutti
> > tranne Enter + Spacebar?
>
> Effettivamente anche questo è vero, purtroppo non è mai stata fatta
> una vera ricerca in merito e i dati che abbiamo sono un po nebulosi.
> Io reputato importante gestire la barra spaziatrice perchè nel
> software tipicamente attiva anchessa le funzionalità.
>
> In ogni caso l'importante è gestire l'enter


Riporto qui anche le scorciatoie della tastiera di IE7, se possono essere
utili::

*Keyboard shortcuts*  Open links in a new tab in the background
CTRL+click  Open
links in a new tab in the foreground CTRL+SHIFT+click  Open a new tab in the
foreground CTRL+T  Open a new tab from the address bar ALT+ENTER  Open a new
tab from the Toolbar Search Box ALT+ENTER  Open Quick Tabs (thumbnail view)
CTRL+Q  Switch between tabs CTRL+TAB/CTRL+SHIFT+TAB  Switch to a specific
tab number CTRL+*n* (*n* can be 1-8)  Switch to the last tab CTRL+9  Close
current tab CTRL+W  Close all tabs ALT+F4  Close other tabs CTRL+Alt+F4

Buona giornata e settimana a tutti,

Simoe
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: http://itlists.org/pipermail/webaccessibile/attachments/20060925/d12a7faa/attachment.htm 


Maggiori informazioni sulla lista webaccessibile