glenjamin / glenjamin/react-hotkey

Higher level abstraction for keys

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
35
Forks
11
PR merge metrics
No merged PRs in 30d

Description

```
React.createClass({
hotkeys: function() {
return {
"?": this.toggleHelp
}
});
```

This would allow the binding code to listen to `keypress` and `keyup` and match up keys based on input.

Maybe this should just use mousetrap internally?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.