From 9b72ff8146c2b43085731969568e5764c8cde449 Mon Sep 17 00:00:00 2001 From: Tatu Lund Date: Fri, 29 Mar 2019 10:12:10 +0200 Subject: [PATCH] Change VCalendarPanel to use KeyDownHandler with Firefox 65+ (#11507) Fixes #11502 --- client/src/main/java/com/vaadin/client/ui/VCalendarPanel.java | 4 ++-- 1 file 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); -- 2.39.5