Procházet zdrojové kódy

Change VCalendarPanel to use KeyDownHandler with Firefox 65+

Fixes #11502
fix11502-3
Tatu Lund před 5 roky
rodič
revize
82e42faf9c
Žádný účet není propojen s e-mailovou adresou tvůrce revize

+ 2
- 2
client/src/main/java/com/vaadin/client/ui/VCalendarPanel.java Zobrazit soubor

@@ -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);

Načítá se…
Zrušit
Uložit