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 <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.