Skip to content

Commit

Permalink
Fix keycode.codes lookup in README (#48)
Browse files Browse the repository at this point in the history
All the keys in the `keycode.codes` map are lower-case, so `keycode.codes['Enter'] === undefined`
  • Loading branch information
NMinhNguyen authored and timoxley committed Sep 7, 2018
1 parent 907ed6e commit eb1962f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Expand Up @@ -102,7 +102,7 @@ Key code/name maps are available directly as `keycode.codes` and `keycode.names`

```js
keycode.names[13] // => 'enter'
keycode.codes['Enter'] // => 13
keycode.codes['enter'] // => 13
```

## Credit
Expand Down

0 comments on commit eb1962f

Please sign in to comment.