diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-09-10 00:11:47 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-09-10 00:11:47 +0200 |
commit | f3e7dc127b3d0446bbee2106df110bbfc4df2171 (patch) | |
tree | 433b987073874e633f1c48e8b6b26d1624c727d0 /src/Text.cpp | |
parent | 541180dd46c53f8d80273a92543f2d217a36bf81 (diff) |
Matrix: support uploading files from clipboard (direct image data, png, jpg, gif)
Diffstat (limited to 'src/Text.cpp')
-rw-r--r-- | src/Text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text.cpp b/src/Text.cpp index 1f34067..d29c9b5 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -1077,7 +1077,7 @@ namespace QuickMedia std::string stringToAdd; if(event.text.codepoint == 22) // ctrl+v { - stringToAdd = window.get_clipboard(); + stringToAdd = window.get_clipboard_string(); } else if(event.text.codepoint >= 32 || (event.text.codepoint == '\t' && !single_line_edit)) stringToAdd.assign(event.text.str, event.text.size); |