diff options
author | Tatu Lund <tatu@vaadin.com> | 2019-03-29 10:12:10 +0200 |
---|---|---|
committer | Olli Tietäväinen <ollit@vaadin.com> | 2019-03-29 10:12:10 +0200 |
commit | 9b72ff8146c2b43085731969568e5764c8cde449 (patch) | |
tree | 14a329c1d163ce389d6f22eb42aed66b30fc5e53 | |
parent | 423f5e039511677a881d53cf59ab34f39f7bb7db (diff) | |
download | vaadin-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.java | 4 |
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); |