mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05: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;
|
||||
}
|
||||
|
||||
function onPaste(): void {
|
||||
function onPaste(event: ClipboardEvent): void {
|
||||
bridgeCommand("paste");
|
||||
window.event.preventDefault();
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
function caretToEnd(): void {
|
||||
|
|
|
|||
Loading…
Reference in a new issue