In your KeyDown event handler, examine the KeyDownEvent to see whether
or not the Shift key is down, e.g.

if (event.isAnyModifierKeyDown()){
   // handle SHIFT-ENTER
} else {
    // handle ENTER
    event.preventDefault();
}


On Feb 24, 5:44 am, ryan T <ryanro...@gmail.com> wrote:
> Hi all,
>
> Is there any way to replace Enter key by Shift + Enter for a widget such as
> RichTextArea?
>
> Thanks,
>
> ryan

-- 
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