Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a4e067cacb | |||
| 5a2b4cc2f5 | |||
| 250c3076fb |
@@ -191,7 +191,7 @@ func (this *box) SetDNDAccept (types ...data.Mime) {
|
||||
}
|
||||
|
||||
func (this *box) SetFocused (focused bool) {
|
||||
hierarchy := this.parent.getHierarchy()
|
||||
hierarchy := this.getHierarchy()
|
||||
if hierarchy == nil {
|
||||
focusedCopy := focused
|
||||
this.focusQueued = &focusedCopy
|
||||
@@ -217,7 +217,7 @@ func (this *box) SetFocusable (focusable bool) {
|
||||
func (this *box) Focused () bool {
|
||||
hierarchy := this.getHierarchy()
|
||||
if hierarchy == nil { return false }
|
||||
return hierarchy.isFocused(this)
|
||||
return hierarchy.isFocused(this.outer)
|
||||
}
|
||||
|
||||
func (this *box) Modifiers () input.Modifiers {
|
||||
|
||||
@@ -36,7 +36,7 @@ func (this *Hierarchy) HandleKeyDown (key input.Key, numberPad bool) {
|
||||
// be called *before* HandleKeyUp.
|
||||
func (this *Hierarchy) HandleKeyUp (key input.Key, numberPad bool) {
|
||||
if target := this.keyboardTarget(); target != nil {
|
||||
target.handleKeyDown(key, numberPad)
|
||||
target.handleKeyUp(key, numberPad)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user