Open cianfoley-nearform opened 5 years ago
Not sure if this one's necessary. User would likely just opt for onKeyPress
, onKeyUp
etc.
maybe global hook could be useful for detecting browser wide key events (i.e. when nothing in focus someone might need to detect keypresses for shortcuts on web app)...
Yep. That's a good use case. Will remove the labels. Just wanted to get some triage/discussions on some of the issues so it's clear what the idea or intention could be 👍
I found the big trick with keyboard shortcuts is determining which component has focus. Up/Down has a different effect depending on context. Hooks could be a useful way to manage this.
Investigate and integrate...