mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
Remove usage of window.event in onPaste
This commit is contained in:
parent
2130434899
commit
409eaa85fe
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue