diff --git a/ts/editor/index.ts b/ts/editor/index.ts index 970a30b43..46cf52524 100644 --- a/ts/editor/index.ts +++ b/ts/editor/index.ts @@ -199,9 +199,9 @@ export function focusIfField(x: number, y: number): boolean { return false; } -function onPaste(): void { +function onPaste(event: ClipboardEvent): void { bridgeCommand("paste"); - window.event.preventDefault(); + event.preventDefault(); } function caretToEnd(): void {