Remove usage of window.event in onPaste

This commit is contained in:
Henrik Giesel 2021-02-05 13:42:49 +01:00
parent 2130434899
commit 409eaa85fe

View file

@ -199,9 +199,9 @@ export function focusIfField(x: number, y: number): boolean {
return false; return false;
} }
function onPaste(): void { function onPaste(event: ClipboardEvent): void {
bridgeCommand("paste"); bridgeCommand("paste");
window.event.preventDefault(); event.preventDefault();
} }
function caretToEnd(): void { function caretToEnd(): void {