1
0
Fork 0

Merge pull request #3074 from neikeq/editor_layouts_patch

Editor layout dialog: name field grabs focus on popup
This commit is contained in:
Rémi Verschelde 2015-12-14 14:26:25 +01:00
commit bfaa179e70
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*************************************************************************/
/* editor_node.cpp */
/* editor_layout_dialog.cpp */
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
@ -35,6 +35,12 @@ void EditorLayoutDialog::clear_layout_name() {
layout_name->clear();
}
void EditorLayoutDialog::_post_popup() {
ConfirmationDialog::_post_popup();
layout_name->grab_focus();
}
void EditorLayoutDialog::ok_pressed() {
if (layout_name->get_text()!="") {

View File

@ -43,6 +43,7 @@ protected:
static void _bind_methods();
virtual void ok_pressed();
virtual void _post_popup();
public:
void clear_layout_name();