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