瀏覽代碼

Change VCalendarPanel to use KeyDownHandler with Firefox 65+ (#11507)

Fixes #11502
tags/7.7.18
Tatu Lund 5 年之前
父節點
當前提交
9b72ff8146
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      client/src/main/java/com/vaadin/client/ui/VCalendarPanel.java

+ 2
- 2
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);

Loading…
取消
儲存