From 1d68b3009d7186ab843f092eefee891649e9f765 Mon Sep 17 00:00:00 2001 From: Tatu Lund Date: Thu, 28 Mar 2019 10:02:24 +0200 Subject: [PATCH] Change VTree to use KeyDownHandler with Firefox 65+ (#11509) Fixes #11502 --- client/src/main/java/com/vaadin/client/ui/VTree.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5