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

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

index 5fdd432c6e2daa3f44be4435459c274965bc0bd4..21458f0c47ad30a33b0d52452b6d04f3603c18ce 100644 (file)
@@ -211,11 +211,11 @@ public class VCalendarPanel extends FocusableFlexTable implements
         Roles.getGridRole().set(getElement());
 
         /*
-         * 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);