You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Got here from KeyboardJS. I'm looking for a keyboard lib for a new project.
There are some features in KeyboardJS looks awesome. Like setContext, watch, stop, which I cannot find in Keystrokes. (Am I missing something?)
However I feel an unbindAll method might be usefule enough as an alternative for these features. By which I can install/teardown easily like a context switch.
And it also benefits in libraries like react. Say we can orchestrate mutiple events to an instance in useEffect and destroy them once.
Describe the solution you'd like
Add unbindAll or even destroy?
How do you feel about this?
The text was updated successfully, but these errors were encountered:
Indeed keystrokes leaves a bit more to the user. The idea was that your code already likely knows or has access to the context or state of your application, so one would just ignore calls to their handlers unless the context or state was correct.
Is your feature request related to a problem? Please describe.
Got here from
KeyboardJS
. I'm looking for a keyboard lib for a new project.There are some features in
KeyboardJS
looks awesome. LikesetContext
,watch
,stop
, which I cannot find inKeystrokes
. (Am I missing something?)However I feel an
unbindAll
method might be usefule enough as an alternative for these features. By which I can install/teardown easily like a context switch.And it also benefits in libraries like react. Say we can orchestrate mutiple events to an instance in useEffect and destroy them once.
Describe the solution you'd like
Add
unbindAll
or evendestroy
?How do you feel about this?
The text was updated successfully, but these errors were encountered: