FlowingCode / YearMonthCalendarAddon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ctrl+arrow keys feature does not work in Firefox

ngonzalezpazFC opened this issue · comments

The feature intended to move the calendar cursor does not work in firefox.
Ctrl + up/down targets the vertical scrollbar.
In the Month tab, the arrow keys works.

Uncaught TypeError: e.path is undefined
    _onKeyDown https://addonsv22-staging.flowingcode.com/VAADIN/build/vaadin-3-cdf86cac978fbb6ade28.cache.js:593
    r https://addonsv22-staging.flowingcode.com/VAADIN/build/vaadin-1-f6e9c0d22a6d5d925665.cache.js:5005
    _addEventListenerToNode https://addonsv22-staging.flowingcode.com/VAADIN/build/vaadin-1-f6e9c0d22a6d5d925665.cache.js:1971

The path property of Event objects is non-standard. The standard equivalent is composedPath. Try:

var path = event.path || (event.composedPath && event.composedPath());

https://stackoverflow.com/a/39245638/1297272