Improvement for the Copy button in the Output Log
Now if no text is selected, pressing the Copy button copies the entire text.
This commit is contained in:
parent
c5f7a581f7
commit
fb6eb21afc
3 changed files with 18 additions and 3 deletions
|
|
@ -79,7 +79,15 @@ void EditorLog::_clear_request() {
|
|||
}
|
||||
|
||||
void EditorLog::_copy_request() {
|
||||
log->selection_copy();
|
||||
String text = log->get_selected_text();
|
||||
|
||||
if (text == "") {
|
||||
text = log->get_text();
|
||||
}
|
||||
|
||||
if (text != "") {
|
||||
DisplayServer::get_singleton()->clipboard_set(text);
|
||||
}
|
||||
}
|
||||
|
||||
void EditorLog::clear() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue