1diff --git a/vxfw/vxfw.go b/vxfw/vxfw.go
2index c7a74ef..75788d9 100644
3--- a/vxfw/vxfw.go
4+++ b/vxfw/vxfw.go
5@@ -276,7 +276,8 @@ func (f *focusHandler) updatePath(root Surface) {
6
7 ok := f.childHasFocus(root)
8 if !ok {
9- panic("focused widget not found in Surface tree")
10+ // reset focus to root widget
11+ f.focused = root.Widget
12 }
13
14 if f.root != root.Widget {