aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatu Lund <tatu@vaadin.com>2019-03-29 10:12:10 +0200
committerOlli Tietäväinen <ollit@vaadin.com>2019-03-29 10:12:10 +0200
commit9b72ff8146c2b43085731969568e5764c8cde449 (patch)
tree14a329c1d163ce389d6f22eb42aed66b30fc5e53
parent423f5e039511677a881d53cf59ab34f39f7bb7db (diff)
downloadvaadin-framework-9b72ff8146c2b43085731969568e5764c8cde449.tar.gz
vaadin-framework-9b72ff8146c2b43085731969568e5764c8cde449.zip
Change VCalendarPanel to use KeyDownHandler with Firefox 65+ (#11507)
Fixes #11502
-rw-r--r--client/src/main/java/com/vaadin/client/ui/VCalendarPanel.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VCalendarPanel.java b/client/src/main/java/com/vaadin/client/ui/VCalendarPanel.java
index 5fdd432c6e..21458f0c47 100644
--- a/client/src/main/java/com/vaadin/client/ui/VCalendarPanel.java
+++ b/client/src/main/java/com/vaadin/client/ui/VCalendarPanel.java
@@ -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);