Concerning the idea, if you have a better one don't hesitate to share
it ;)

NativePreviewHandler offers more possibilities than KeyPressHandler so
I will use it, but detecting idle with mouse events remains useless
since users have only keyboard.

Thanks for your answer, that helps me.


On Sep 17, 6:43 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> On 17 sep, 15:15, "n...@oj" <johann.ber...@gmail.com> wrote:
>
> > Hi everyone,
>
> > I'm working on an accessible gwt application. Some pages are
> > restricted to logged user. At each action, the system substracts time
> > of the user account.
>
> > Disability people do not use mouse, so I don't know how to detect if
> > they are idle or not, exept using KeyPressHandler when they write in
> > text fields.
>
> > Does anyone have an idea ?
>
> I'm not sure that's a really good idea overall... but you can usually
> detect "idleness" using both mousemove and keydown/keyup events.
> In GWT, just use a NativePreviewHandler to receive all events (see
> Event.addNativePreviewHandler(...))
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to