JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1437
  • Score
    100M100P100Q104919F
  • License UNLICENSED

Package Exports

  • @scalar/use-keyboard-event
  • @scalar/use-keyboard-event/src/index.ts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@scalar/use-keyboard-event) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Scalar useKeyboardEvent()

Version Downloads License Discord

Installation

npm install @scalar/use-keyboard-event

Usage

import { useKeyboardEvent } from '@scalar/use-keyboard-event'

// Control/Cmd + K
useKeyboardEvent({
  keyList: ['k'],
  withCtrlCmd: true,
  handler: () => {},
})