mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix formatting being lost in inter-field pasting on macOS
ownsClipboard() always returns false on macOS regression introduced in PR 274
This commit is contained in:
parent
fccb458fda
commit
b4019473ab
1 changed files with 1 additions and 1 deletions
|
@ -991,7 +991,7 @@ class EditorWebView(AnkiWebView):
|
||||||
# add a comment in the clipboard html so we can tell text is copied
|
# add a comment in the clipboard html so we can tell text is copied
|
||||||
# from us and doesn't need to be stripped
|
# from us and doesn't need to be stripped
|
||||||
clip = self.editor.mw.app.clipboard()
|
clip = self.editor.mw.app.clipboard()
|
||||||
if not clip.ownsClipboard():
|
if not isMac and not clip.ownsClipboard():
|
||||||
return
|
return
|
||||||
mime = clip.mimeData()
|
mime = clip.mimeData()
|
||||||
if not mime.hasHtml():
|
if not mime.hasHtml():
|
||||||
|
|
Loading…
Reference in a new issue