Skip to content

Commit dd8a55d

Browse files
committed
Merge pull request godotengine#102683 from Calinou/editor-input-map-keep-focus-on-new-entry
Fix focus being lost after adding a new input map entry in the editor
2 parents b1b9a17 + 5c9569c commit dd8a55d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

editor/action_map_editor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ ActionMapEditor::ActionMapEditor() {
570570
add_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
571571
add_edit->set_placeholder(TTR("Add New Action"));
572572
add_edit->set_clear_button_enabled(true);
573+
add_edit->set_keep_editing_on_text_submit(true);
573574
add_edit->connect(SceneStringName(text_changed), callable_mp(this, &ActionMapEditor::_add_edit_text_changed));
574575
add_edit->connect(SceneStringName(text_submitted), callable_mp(this, &ActionMapEditor::_add_action));
575576
add_hbox->add_child(add_edit);

0 commit comments

Comments
 (0)