keys: expose code name in keyup/keydown

This commit is contained in:
jean-emmanuel 2019-03-26 13:32:26 +01:00
parent 2dae1587e0
commit db0800eecb
2 changed files with 4 additions and 0 deletions

View file

@ -8,6 +8,7 @@
- switch: add `traversing` option (`true` by default)
- knob: act as a relative encoder when traversing gestures are enabled and `snap` is `false`
- keys: `key` variable in `keydown` and `keyup` is now always lowercased when referencing a single character
- keys; expose `code` variable from the keyboard event object (https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code#Code_values)
- custom module
- expose shorthand functions `send` and `receives`
- expose a client object instead of just an id in `app` event handlers to allow retrieving the client's ip address as well