mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-11 22:50:08 +00:00
always focus root node when deleting currently focused node
- fixes hotkeys not working in the editor in some cases
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user