mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
exp/textinput: bug fix: inputting words doesn't work correctly on Android
This commit is contained in:
parent
60673752a1
commit
e3b54b41c2
@ -99,7 +99,7 @@ func (t *textInput) init() {
|
||||
t.trySend(true)
|
||||
return nil
|
||||
}
|
||||
if e.Get("data").Equal(js.Null()) {
|
||||
if e.Get("inputType").String() == "insertText" && e.Get("data").Equal(js.Null()) {
|
||||
// When a new line is inserted, the 'data' property might be null.
|
||||
t.trySend(true)
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user