From: Artur Signell Date: Mon, 3 Jun 2013 17:09:56 +0000 (+0300) Subject: Do not submit TextArea value on enter in IE (#11982) X-Git-Tag: 7.0.7~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=892b8ba4e3f37ddda8c213a8534fc287b5cf00c9;p=vaadin-framework.git 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 --- 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. + } + }