From: Tatu Lund Date: Thu, 28 Mar 2019 08:02:24 +0000 (+0200) Subject: Change VTree to use KeyDownHandler with Firefox 65+ (#11509) X-Git-Tag: 7.7.18~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1d68b3009d7186ab843f092eefee891649e9f765;p=vaadin-framework.git Change VTree to use KeyDownHandler with Firefox 65+ (#11509) Fixes #11502 --- diff --git a/client/src/main/java/com/vaadin/client/ui/VTree.java b/client/src/main/java/com/vaadin/client/ui/VTree.java index 92bc74e394..2541e98743 100644 --- a/client/src/main/java/com/vaadin/client/ui/VTree.java +++ b/client/src/main/java/com/vaadin/client/ui/VTree.java @@ -209,11 +209,11 @@ public class VTree extends FocusElementPanel }, ContextMenuEvent.getType()); /* - * Firefox auto-repeat works correctly only if we use a key press + * Firefox prior to v65 auto-repeat works correctly only if we use a key press * handler, other browsers handle it correctly when using a key down * handler */ - if (BrowserInfo.get().isGecko()) { + if (BrowserInfo.get().isGecko() && BrowserInfo.get().getGeckoVersion() < 65) { addKeyPressHandler(this); } else { addKeyDownHandler(this);