mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
ui: Bug fix: key event on Edge browser
This commit is contained in:
parent
dc4dc92dd0
commit
fb8bef99c3
@ -251,8 +251,9 @@ func initialize() error {
|
|||||||
keyCodeToKeyEdge[code] == KeyDown ||
|
keyCodeToKeyEdge[code] == KeyDown ||
|
||||||
keyCodeToKeyEdge[code] == KeyLeft ||
|
keyCodeToKeyEdge[code] == KeyLeft ||
|
||||||
keyCodeToKeyEdge[code] == KeyRight {
|
keyCodeToKeyEdge[code] == KeyRight {
|
||||||
currentInput.keyDownEdge(code)
|
e.Call("preventDefault")
|
||||||
}
|
}
|
||||||
|
currentInput.keyDownEdge(code)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
cs := c.String()
|
cs := c.String()
|
||||||
|
Loading…
Reference in New Issue
Block a user