0.4.0 • Published 7 years ago

key-string v0.4.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 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

7 years ago

0.3.0

7 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago

0.0.2

9 years ago

0.0.1

9 years ago