We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0966374 commit c71f531Copy full SHA for c71f531
context.go
@@ -19,7 +19,6 @@ type Context struct {
19
hover WidgetID
20
focus WidgetID
21
currentID WidgetID
22
- lastID WidgetID
23
lastZIndex int
24
keepFocus bool
25
hoverRoot *container
@@ -76,7 +75,6 @@ func (c *Context) begin() {
76
75
c.hoverRoot = c.nextHoverRoot
77
c.nextHoverRoot = nil
78
c.currentID = emptyWidgetID
79
- c.lastID = emptyWidgetID
80
}
81
82
func (c *Context) end() error {
helpers.go
@@ -13,7 +13,7 @@ func (c *Context) bringToFront(cnt *container) {
13
14
15
func (c *Context) Focus() {
16
- c.setFocus(c.lastID)
+ c.setFocus(c.currentID)
17
18
func (c *Context) setFocus(id WidgetID) {
0 commit comments