How to use the hotkeys-js.deleteScope function in hotkeys-js

To help you get started, we’ve selected a few hotkeys-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jaames / flipnote-player / src / components / FlipnotePlayer / index.jsx View on Github external
return () => {
      hotkeys.deleteScope('player');
      window.removeEventListener('resize', resizeCanvas);
      player.clearEvents();
      player.close();
      player.destroy();
    };
  }, []);

hotkeys-js

A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.

MIT
Latest version published 10 months ago

Package Health Score

77 / 100
Full package analysis