-
Notifications
You must be signed in to change notification settings - Fork 725
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(iOS): Copy all mime-types to clipboard
Previously we only copied data under UTIs, but this isn't enough information for us to do a proper rich paste, and UTI-copied data of certain types can be slightly changed by the process of copying it. Luckily, iOS's clipboard allows copying data under any identifier, including our mime-types, so we can keep copying data under UTIs for compatibility but also copy data under mime-types for our own use. When we read the clipboard, we still need to read UTIs as other apps might have placed them on the keyboard, but we want to avoid overwriting any mime-type data because - as mentioned - it can be slightly changed by the copying process (if it's text or images, we need to wrap it in Apple's types before copying it to the clipboard) Signed-off-by: Skyler Grey <skyler.grey@collabora.com> Change-Id: Ifb13fd910d63a985ad015335658815af3bd69f6b
- Loading branch information
1 parent
31c7c6c
commit 1fadc2b
Showing
1 changed file
with
55 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters