mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-26 09:24:28 +02:00
Move cursor to the end of the insertion after pasing in a Textbox
This commit is contained in:
@@ -162,6 +162,7 @@ void Textbox::pasteIntoSelection()
|
|||||||
cursor = getLowerSelectionBound();
|
cursor = getLowerSelectionBound();
|
||||||
}
|
}
|
||||||
backingText.insert(cursor, newText);
|
backingText.insert(cursor, newText);
|
||||||
|
cursor = cursor+newText.length();
|
||||||
ClearSelection();
|
ClearSelection();
|
||||||
|
|
||||||
if(masked)
|
if(masked)
|
||||||
|
Reference in New Issue
Block a user