mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
uidriver/js: Bug fix: IsFocused crashes on go2cpp
This commit is contained in:
parent
fcbde8d124
commit
dd15927710
@ -165,6 +165,10 @@ func (u *UserInterface) suspended() bool {
|
||||
}
|
||||
|
||||
func (u *UserInterface) isFocused() bool {
|
||||
if go2cpp.Truthy() {
|
||||
return true
|
||||
}
|
||||
|
||||
if !document.Call("hasFocus").Bool() {
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user