Fix and expose String::strip_escapes(), use it in LineEdit paste

Supersedes #27736.
This commit is contained in:
Rémi Verschelde
2019-05-31 15:27:53 +02:00
parent 29645c8147
commit af2c742f53
7 changed files with 21 additions and 23 deletions

View File

@@ -166,6 +166,7 @@
</constant>
<constant name="MENU_PASTE" value="2" enum="MenuItems">
Pastes the clipboard text over the selected text (or at the cursor's position).
Non-printable escape characters are automatically stripped from the OS clipboard via [method String.strip_escapes].
</constant>
<constant name="MENU_CLEAR" value="3" enum="MenuItems">
Erases the whole [LineEdit] text.