ソースを参照

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.
bncastle 8 年 前
コミット
a7feec3992
1 ファイル変更1 行追加0 行削除
  1. 1 0
      editor/project_settings_editor.cpp

+ 1 - 0
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) {