Saturday, May 29, 2010

Re: KeyPressHandler tips with keys canceling

mariyan, I'm having all sorts of problems with key event handling in
Internet Explorer (not Firefox), but if I'm to understand your
question correctly, you simply want to know if a character that's
being typed is a non-number or not (so you can delete it immediately
and maybe inform the user that only numbers are allowed). This simply
requires a DeferredCommand in your KeyPress event execution code, e.g.

DeferredCommand.addCommand( new Command(){ @Override public void
execute(){/* do your stuff here */}});

Is this what you're after?

On Apr 30, 5:36 pm, mariyan nenchev <nenchev.mari...@gmail.com> wrote:
> Hi,
>
> The keys i used work in FF(win/linux), IE, chrome(win/linux). There is only
> one problem with KEY_LEFT and KEY_RIGHT, in IE and chrome they work, but
> after the cursor is moved to the right position  it returns to the initial.
>
> --
> 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+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment