浏览代码

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

Fix focus when reordering array
Thaddeus Crews 9 月之前
父节点
当前提交
d6adc775a4
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);
 	}