mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Use mouseup intead of click for updateButtonState
This commit is contained in:
parent
a90931b91e
commit
b56b3fd74a
1 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ export class EditingArea extends HTMLDivElement {
|
|||
this.addEventListener("paste", onPaste);
|
||||
this.addEventListener("copy", onCutOrCopy);
|
||||
this.addEventListener("oncut", onCutOrCopy);
|
||||
this.addEventListener("click", updateButtonState);
|
||||
this.addEventListener("mouseup", updateButtonState);
|
||||
|
||||
const baseStyleSheet = this.baseStyle.sheet as CSSStyleSheet;
|
||||
baseStyleSheet.insertRule("anki-editable {}", 0);
|
||||
|
@ -166,7 +166,7 @@ export class EditingArea extends HTMLDivElement {
|
|||
this.removeEventListener("paste", onPaste);
|
||||
this.removeEventListener("copy", onCutOrCopy);
|
||||
this.removeEventListener("oncut", onCutOrCopy);
|
||||
this.removeEventListener("click", updateButtonState);
|
||||
this.removeEventListener("mouseup", updateButtonState);
|
||||
}
|
||||
|
||||
initialize(color: string, content: string): void {
|
||||
|
|
Loading…
Reference in a new issue