always focus root node when deleting currently focused node

- fixes hotkeys not working in the editor in some cases
This commit is contained in:
Dmitry Stepanov
2026-10-11 12:04:54 +03:00
parent a64f0c4016
commit 508ae007d5
+1 -1
View File
@@ -3713,7 +3713,7 @@ impl SceneGraph for UserInterface {
self.captured_node = Handle::NONE;
}
if self.keyboard_focus_node == handle {
self.keyboard_focus_node = Handle::NONE;
self.request_focus(self.root_canvas);
}
self.remove_picking_restriction(handle);