Merge pull request #56476 from gerhean/fix_shortcut_collapse_after_edit
This commit is contained in:
commit
90faf04f29
@ -338,13 +338,15 @@ void EditorSettingsDialog::_update_shortcuts() {
|
|||||||
|
|
||||||
// Try go down tree
|
// Try go down tree
|
||||||
TreeItem *ti_next = ti->get_first_child();
|
TreeItem *ti_next = ti->get_first_child();
|
||||||
// Try go across tree
|
// Try go to the next node via in-order traversal
|
||||||
if (!ti_next) {
|
if (!ti_next) {
|
||||||
ti_next = ti->get_next();
|
ti_next = ti;
|
||||||
}
|
while (ti_next && !ti_next->get_next()) {
|
||||||
// Try go up tree, to next node
|
ti_next = ti_next->get_parent();
|
||||||
if (!ti_next) {
|
}
|
||||||
ti_next = ti->get_parent()->get_next();
|
if (ti_next) {
|
||||||
|
ti_next = ti_next->get_next();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ti = ti_next;
|
ti = ti_next;
|
||||||
|
Loading…
Reference in New Issue
Block a user