Explorar el Código

Change VMenuBar to use KeyDownHandler with Firefox 65+ (#11505)

tags/7.7.18
Tatu Lund hace 5 años
padre
commit
a0de6289f8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      client/src/main/java/com/vaadin/client/ui/VMenuBar.java

+ 2
- 2
client/src/main/java/com/vaadin/client/ui/VMenuBar.java Ver fichero

@@ -127,11 +127,11 @@ public class VMenuBar extends SimpleFocusablePanel
addFocusHandler(this);

/*
* 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);

Cargando…
Cancelar
Guardar