Преглед на файлове

Change VTree to use KeyDownHandler with Firefox 65+

Fixes #11502
fix11502-5
Tatu Lund преди 5 години
родител
ревизия
ddbc4202c9
No account linked to committer's email address
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      client/src/main/java/com/vaadin/client/ui/VTree.java

+ 2
- 2
client/src/main/java/com/vaadin/client/ui/VTree.java Целия файл

@@ -209,11 +209,11 @@ public class VTree extends FocusElementPanel
}, ContextMenuEvent.getType());

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

Loading…
Отказ
Запис