]> source.dussan.org Git - vaadin-framework.git/commitdiff
Change VMenuBar to use KeyDownHandler with Firefox 65+ (#11505)
authorTatu Lund <tatu@vaadin.com>
Fri, 29 Mar 2019 12:52:25 +0000 (14:52 +0200)
committerOlli Tietäväinen <ollit@vaadin.com>
Fri, 29 Mar 2019 12:52:25 +0000 (14:52 +0200)
client/src/main/java/com/vaadin/client/ui/VMenuBar.java

index 28592ad34ba6cd4a1c57a798c2a30f2ff75d7e1f..2138f817d646a0b389fe40dc5ac03e881aa59bfb 100644 (file)
@@ -127,11 +127,11 @@ public class VMenuBar extends SimpleFocusablePanel
         addFocusHandler(this);
 
         /*
-         * 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);