1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

FileManager+LibGUI+Userland: Switch clipboard to MIME types

We will now actually use MIME types for clipboard. The default type is now
"text/plain" (instead of just "text").

This also fixes some issues in copy(1) and paste(1).
This commit is contained in:
Sergey Bugaev 2020-05-15 22:35:03 +03:00 committed by Andreas Kling
parent de7827faf7
commit acc107a44f
4 changed files with 27 additions and 19 deletions

View file

@ -38,7 +38,7 @@ public:
String data() const { return data_and_type().data; }
String type() const { return data_and_type().type; }
void set_data(const StringView&, const String& data_type = "text");
void set_data(const StringView&, const String& data_type = "text/plain");
struct DataAndType {
String data;