keyboard icon indicating copy to clipboard operation
keyboard copied to clipboard

Global keyboard events in Elm

Results 6 keyboard issues
Sort by recently updated
recently updated
newest added

Char.toCode/Char.fromCode convert to/from UTF-16 values. KeyCode values only intermittently overlap with those. E.g. on Chrome on my Mac, toCode ']' yields 93, while the KeyCode registers as 221.

I've just been playing in Firefox 58, and `Keyboard.presses` always produces the KeyCode 0, no matter what key is pressed. `Keyboard.ups` produces the right codes. Here's a small example ([on...

### Problem I have [a project](https://github.com/interpretation-experiment/gistr-app/) that uses Ctrl+Enter for control. Tracking this in pure Elm requires keeping track of which keys are up or down à la [ohanhi/keyboard-extra](http://package.elm-lang.org/packages/ohanhi/keyboard-extra/latest). But...

This was discussed on the mailing list, in this thread: https://groups.google.com/forum/#!topic/elm-discuss/Ud7WzAhRsqE There was a lot of support, and no detractors I think. --- The package currently contains these functions: ```...

I have a project which uses spacebar and backspace as controls, both of which have builtin defaults in the browser that I need to bypass. Being able to selectively preventDefault...

I wrote some code to try and track which keys are pressed using this package and the standard JS suggestion: https://gist.github.com/JoshuaOSHickman/694447f77986bbfb5add80247cd801e5 Doesn't work completely right. For instance, I can press...