Browse Source

fix focus on reorder array

ajreckof 1 year ago
parent
commit
d113a68e43
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/editor_properties_array_dict.cpp

+ 1 - 0
editor/editor_properties_array_dict.cpp

@@ -819,6 +819,7 @@ void EditorPropertyArray::_reorder_button_up() {
 		array.call("remove_at", reorder_slot.index);
 		array.call("insert", reorder_to_index, value_to_move);
 
+		slots[reorder_to_index % page_length].reorder_button->grab_focus();
 		emit_changed(get_edited_property(), array);
 	}