aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VTextArea.java8
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.
+ }
}