Skip to content

hotkey.deactivate or similar? #9

Description

@t1mmen

Hi,

First off, thanks for a great mixin! I'm looking manual hooks similar to what componentDidMount and componentWillUnmount already do, allowing this sort of functionality:

   componentWillReceiveProps(nextProps) {
     if (nextProps.isHotkeyActive) {
       hotkey.activate();
     } else {
       hotkey.deactivate(); // hotkey.disable unregisters all listeners :/
     }
   },

Is this something you're planning on adding support for?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions