Don't use deprecated keyCode
This commit is contained in:
@@ -142,10 +142,9 @@ class ActionHandler extends HTMLElement implements ActionHandler {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleEnter = (ev: KeyboardEvent): void => {
|
const handleEnter = (ev: KeyboardEvent): void => {
|
||||||
if (ev.keyCode !== 13) {
|
if (ev.key === 'Enter') {
|
||||||
return;
|
|
||||||
}
|
|
||||||
end(ev);
|
end(ev);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
element.addEventListener('touchstart', start, { passive: true });
|
element.addEventListener('touchstart', start, { passive: true });
|
||||||
|
|||||||
Reference in New Issue
Block a user