0.4.0 • Published 9 years ago

key-string v0.4.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

key-string

npm Build Status

Detect keyboard event type from KeyboardEvent.

Install

yarn add key-string

Usage

import detectKeyString from "key-string/detectKeyString"

document.addEventListener("keydown", (event) => {
  console.log(detectKeyString(event)); //=> "Alt+Ctrl+Return"
});

Available Modifiers

  • Alt
  • Ctrl
  • Meta
  • Shift

Development

Set up

yarn install

Build

yarn run build

Test

yarn run test

Publish

yarn run build
cd dist
npm publish

Inspired by

0.4.0

9 years ago

0.3.0

9 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago

0.0.2

11 years ago

0.0.1

11 years ago