summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbncastle <bncastle@pixelbytestudios.com>2017-10-31 12:59:30 -0400
committerbncastle <bncastle@pixelbytestudios.com>2017-10-31 12:59:30 -0400
commita7feec399240e96297254692b6458a96cd7e708b (patch)
tree06255adc67c4a060e528c26102b9432dcd29d6bd
parent157fa55e34b9bf21a22876aecef89ed0a9491412 (diff)
Clear text when a new action is added Project Settings Input Map
When editing the Input Map under Project Settings: Clear the action name the 'Add' button is clicked and the action is successfully added.
-rw-r--r--editor/project_settings_editor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp
index 3f79d00f80..b21c176543 100644
--- a/editor/project_settings_editor.cpp
+++ b/editor/project_settings_editor.cpp
@@ -876,6 +876,7 @@ void ProjectSettingsEditor::_action_add() {
r->select(0);
input_editor->ensure_cursor_is_visible();
action_add_error->hide();
+ action_name->clear();
}
void ProjectSettingsEditor::_item_checked(const String &p_item, bool p_check) {