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:
Damien Elmes 2019-04-29 12:30:52 +10:00
parent fccb458fda
commit b4019473ab

View file

@ -991,7 +991,7 @@ class EditorWebView(AnkiWebView):
# add a comment in the clipboard html so we can tell text is copied
# from us and doesn't need to be stripped
clip = self.editor.mw.app.clipboard()
if not clip.ownsClipboard():
if not isMac and not clip.ownsClipboard():
return
mime = clip.mimeData()
if not mime.hasHtml():