From f3e7dc127b3d0446bbee2106df110bbfc4df2171 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 10 Sep 2022 00:11:47 +0200 Subject: Matrix: support uploading files from clipboard (direct image data, png, jpg, gif) --- src/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text.cpp') 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); -- cgit v1.2.3