From 892b8ba4e3f37ddda8c213a8534fc287b5cf00c9 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 3 Jun 2013 20:09:56 +0300 Subject: [PATCH] Do not submit TextArea value on enter in IE (#11982) For some reason the earlier patch was merged as a no-op Change-Id: Id11383495b6e36991d6bddcd4cf977145c455e30 --- client/src/com/vaadin/client/ui/VTextArea.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/com/vaadin/client/ui/VTextArea.java b/client/src/com/vaadin/client/ui/VTextArea.java index 45e0532451..9e39a5ea5a 100644 --- a/client/src/com/vaadin/client/ui/VTextArea.java +++ b/client/src/com/vaadin/client/ui/VTextArea.java @@ -285,4 +285,12 @@ public class VTextArea extends VTextField { } this.wordwrap = wordwrap; } + + @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. + } + } -- 2.39.5