Scriptaculous - Keyboard shortcuts, Setting Focus

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Scriptaculous - Keyboard shortcuts, Setting Focus

Sophie424
Are there ways to set keyboard shortcuts on entry fields or the document (so
I can react to e.g. "Enter" or "Cmd-P"), and to select which field has
focus?

Thanks - Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Scriptaculous - Keyboard shortcuts, Setting Focus

Lukas Renggli
> Are there ways to set keyboard shortcuts on entry fields or the document (so
> I can react to e.g. "Enter"

html form
   defaultAction: [ " Your ENTER handler callback " ];
   with: [ ... ]

> or "Cmd-P"),

html textInput
   accessKey: $p;
   ...

> and to select which field has
> focus?

html textInput
    script: html formElement focus;
    ...

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside