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] == KeyLeft ||
keyCodeToKeyEdge[code] == KeyRight {
currentInput.keyDownEdge(code)
e.Call("preventDefault")
}
currentInput.keyDownEdge(code)
return
}
cs := c.String()