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

@ -319,6 +319,7 @@ private:
bool shortcut_keys_enabled = true;
bool virtual_keyboard_enabled = true;
bool middle_mouse_paste_enabled = true;
bool empty_selection_clipboard_enabled = true;
// Overridable actions.
String cut_copy_line = "";
@ -770,6 +771,9 @@ public:
void set_middle_mouse_paste_enabled(bool p_enabled);
bool is_middle_mouse_paste_enabled() const;
void set_empty_selection_clipboard_enabled(bool p_enabled);
bool is_empty_selection_clipboard_enabled() const;
// Text manipulation
void clear();