Skip to content

Commit

Permalink
dont clear clipboard but do a dummy read.
Browse files Browse the repository at this point in the history
  • Loading branch information
danwalmsley committed Aug 9, 2019
1 parent 4910c17 commit a4eed99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions native/Avalonia.Native/src/OSX/clipboard.mm
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
Clipboard()
{
NSPasteboard *pasteBoard = [NSPasteboard generalPasteboard];
[pasteBoard clearContents];
[pasteBoard setString:@"" forType:NSPasteboardTypeString];
[pasteBoard stringForType:NSPasteboardTypeString];
}

virtual HRESULT GetText (IAvnString**ppv) override
Expand Down

0 comments on commit a4eed99

Please sign in to comment.