summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-05-17 15:38:24 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-05-17 15:38:24 -0300
commit2696ecb769a5469bd6fabe2efe9a5914d8cd8a6f (patch)
treec7aad55a7816726cc63ba4963d0aca52d9ec07a8
parent6e85ee3a4303cee9029ec26b6584b7e1603aef05 (diff)
reinstante focus into textedit after menu used in code editor
-rw-r--r--tools/editor/plugins/script_editor_plugin.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp
index edc5d460e7..f5ba6a08e6 100644
--- a/tools/editor/plugins/script_editor_plugin.cpp
+++ b/tools/editor/plugins/script_editor_plugin.cpp
@@ -706,25 +706,31 @@ void ScriptEditor::_menu_option(int p_option) {
} break;
case EDIT_UNDO: {
current->get_text_edit()->undo();
+ current->get_text_edit()->call_deferred("grab_focus");
} break;
case EDIT_REDO: {
current->get_text_edit()->redo();
+ current->get_text_edit()->call_deferred("grab_focus");
} break;
case EDIT_CUT: {
current->get_text_edit()->cut();
+ current->get_text_edit()->call_deferred("grab_focus");
} break;
case EDIT_COPY: {
current->get_text_edit()->copy();
+ current->get_text_edit()->call_deferred("grab_focus");
} break;
case EDIT_PASTE: {
current->get_text_edit()->paste();
+ current->get_text_edit()->call_deferred("grab_focus");
} break;
case EDIT_SELECT_ALL: {
current->get_text_edit()->select_all();
+ current->get_text_edit()->call_deferred("grab_focus");
} break;
case EDIT_MOVE_LINE_UP: {