1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add TextEdit option to prevent copying without a selection

This commit is contained in:
Haoyu Qiu
2024-04-16 17:34:01 +08:00
parent 74de05a01c
commit 504e0656bb
9 changed files with 112 additions and 0 deletions

View File

@@ -831,6 +831,9 @@ void CodeEdit::_cut_internal(int p_caret) {
delete_selection(p_caret);
return;
}
if (!is_empty_selection_clipboard_enabled()) {
return;
}
if (p_caret == -1) {
delete_lines();
} else {