You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Fix ability to cut/paste text in LineEdit/TextEdit in readonly mode.
Fixes #6466
(cherry picked from commit 9c71e5a9df)
This commit is contained in:
committed by
Rémi Verschelde
parent
4ca83c635f
commit
d3b549f2a3
@@ -1190,24 +1190,28 @@ void LineEdit::menu_option(int p_option) {
|
||||
|
||||
switch(p_option) {
|
||||
case MENU_CUT: {
|
||||
cut_text();
|
||||
if (editable) {
|
||||
cut_text();
|
||||
}
|
||||
} break;
|
||||
case MENU_COPY: {
|
||||
|
||||
copy_text();
|
||||
} break;
|
||||
case MENU_PASTE: {
|
||||
|
||||
paste_text();
|
||||
if (editable) {
|
||||
paste_text();
|
||||
}
|
||||
} break;
|
||||
case MENU_CLEAR: {
|
||||
clear();
|
||||
if (editable) {
|
||||
clear();
|
||||
}
|
||||
} break;
|
||||
case MENU_SELECT_ALL: {
|
||||
select_all();
|
||||
} break;
|
||||
case MENU_UNDO: {
|
||||
|
||||
undo();
|
||||
} break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user