Closed welf closed 7 years ago
@welf thank you for your contribution! I have improved the example in #5
I haven't solved the problem with Tab
, the only reasonable way is to clear up the list of pressed buttons right away, but then it would make sense to handle other combinations, which will make browser window to loose focus.
I'm not sure if this would be an appropriate place for a comprehensive example.
You are very welcome to hit me with a PR, if you have good ideas on that.
For now I will close this issue.
Tab
key, the focus goes to the address bar of browser and theKeyCode
of this key remains in the model, because Elm app doesn't get the eventKeyboard.ups
. It is better to clear the model explicitly onKeyboard.ups
(at least the model will be cleared on the nextKeyboard.ups
event).::
operator instead of++
.