mirror of https://github.com/godotengine/godot
Merge pull request #89763 from ajreckof/fix-focus-on-reorder
Fix focus when reordering array
This commit is contained in:
commit
d6adc775a4
|
|
@ -881,6 +881,7 @@ void EditorPropertyArray::_reorder_button_up() {
|
||||||
array.call("remove_at", reorder_slot.index);
|
array.call("remove_at", reorder_slot.index);
|
||||||
array.call("insert", reorder_to_index, value_to_move);
|
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);
|
emit_changed(get_edited_property(), array);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue