Skip to content

Commit

Permalink
Revert "fix: save change when clicking outside"
Browse files Browse the repository at this point in the history
This reverts commit 8a029de.

MathField can be blured when interating with the popup title bar.
  • Loading branch information
AllanChain committed Sep 29, 2023
1 parent 7b8c74a commit 41612e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ export async function openPopup(
textarea.selectionEnd = contentBeforeCaret.length
}
mfe.addEventListener('change', async () => {
// Ignore window focus lost
if (!mfe.hasFocus() && !parent.document.hasFocus()) return
// Ignore focus lost
if (!mfe.hasFocus()) return
await insertLaTeX()
})
popupContent.addEventListener('keydown', async (event) => {
Expand Down

0 comments on commit 41612e6

Please sign in to comment.