Skip to content

Way to unbindAll or destroy the instance? #49

@yuqianma

Description

@yuqianma

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions