mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-11 19:04:05 +02:00
Allow non-ASCII text to be pasted into textboxes
There is no end to the ASCII-isms >_>
This commit is contained in:
committed by
mniip
parent
a2a8c876b3
commit
c40a6bf13f
@@ -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())
|
||||
|
Reference in New Issue
Block a user