Not trigger when in text boxes or input fields
jkup opened this issue · comments
It would be nice to think of a way to not throw these events if the user is typing into a text box or input field. Finding some way to distinguish between writing text and triggering shortcuts.
this is probably the solution: https://developer.mozilla.org/en-US/docs/Web/API/document.activeElement#Browser_compatibility