]> source.dussan.org Git - vaadin-framework.git/commitdiff
Change VTree to use KeyDownHandler with Firefox 65+ (#11509)
authorTatu Lund <tatu@vaadin.com>
Thu, 28 Mar 2019 08:02:24 +0000 (10:02 +0200)
committerOlli Tietäväinen <ollit@vaadin.com>
Thu, 28 Mar 2019 08:02:24 +0000 (10:02 +0200)
Fixes #11502

client/src/main/java/com/vaadin/client/ui/VTree.java

index 92bc74e39454b658267f637661ea9df7f0f43a83..2541e98743b8a66b38e555f216bd0dcd06c0ffe9 100644 (file)
@@ -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);