mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:27:44 +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:
parent
de7827faf7
commit
acc107a44f
4 changed files with 27 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue