mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-27 04:08:53 +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)
|
t.trySend(true)
|
||||||
return nil
|
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.
|
// When a new line is inserted, the 'data' property might be null.
|
||||||
t.trySend(true)
|
t.trySend(true)
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user