diff options
author | Artur Signell <artur.signell@itmill.com> | 2012-08-03 13:54:15 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2012-08-03 13:54:15 +0000 |
commit | 197e7ce782968dfda2fd7849547ffdec59a387f5 (patch) | |
tree | 623904e85433cad7cab2ddedcabef0da3d4b7789 | |
parent | 082985c68ad0b6c7f8c155cce2a5a79070176c09 (diff) | |
download | vaadin-framework-197e7ce782968dfda2fd7849547ffdec59a387f5.tar.gz vaadin-framework-197e7ce782968dfda2fd7849547ffdec59a387f5.zip |
Do not submit TextArea value on enter in IE (#9139)
svn changeset:24060/svn branch:6.8
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VTextArea.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTextArea.java b/src/com/vaadin/terminal/gwt/client/ui/VTextArea.java index c6107e3b0e..0ed5887442 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTextArea.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VTextArea.java @@ -5,6 +5,7 @@ package com.vaadin.terminal.gwt.client.ui; import com.google.gwt.core.client.Scheduler; +import com.google.gwt.event.dom.client.KeyDownEvent; import com.google.gwt.user.client.Command; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Element; @@ -76,4 +77,11 @@ public class VTextArea extends VTextField { // detected in a different way. return getImpl().getTextAreaCursorPos(getElement()); } + + @Override + public void onKeyDown(KeyDownEvent event) { + // Overridden to avoid submitting TextArea value on enter in IE. This is + // another reason why widgets should inherit a common abstract + // class instead of directly each other. + } } |