Forráskód Böngészése

Merge pull request #89763 from ajreckof/fix-focus-on-reorder

Fix focus when reordering array
Thaddeus Crews 9 hónapja
szülő
commit
d6adc775a4
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      editor/editor_properties_array_dict.cpp

+ 1 - 0
editor/editor_properties_array_dict.cpp

@@ -881,6 +881,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);
 	}