From c40a6bf13f9cd66fcc30993a21e9d003b1449e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sat, 28 Dec 2019 13:09:05 +0100 Subject: [PATCH] Allow non-ASCII text to be pasted into textboxes There is no end to the ASCII-isms >_> --- src/gui/interface/Textbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/interface/Textbox.cpp b/src/gui/interface/Textbox.cpp index f96929663..9ab126ced 100644 --- a/src/gui/interface/Textbox.cpp +++ b/src/gui/interface/Textbox.cpp @@ -181,7 +181,7 @@ void Textbox::cutSelection() void Textbox::pasteIntoSelection() { - String newText = format::CleanString(ClipboardPull().FromUtf8(), true, true, inputType != Multiline, inputType == Number || inputType == Numeric); + String newText = format::CleanString(ClipboardPull().FromUtf8(), false, true, inputType != Multiline, inputType == Number || inputType == Numeric); if (HasSelection()) { if (getLowerSelectionBound() < 0 || getHigherSelectionBound() > (int)backingText.length())