ui: Bug fix: key event on Edge browser

This commit is contained in:
Hajime Hoshi 2017-11-10 00:39:46 +09:00
parent dc4dc92dd0
commit fb8bef99c3

View File

@ -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()