Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 607 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 607 Bytes

Sequence

Sequence is a little library to help make handling keystroke sequences easier.

How to use Sequence

All you need to do to make a Sequence is to make a new Sequence with an array of keys (based on event.key), and a callback function.

Example

Here's a little example of G then I, which Linear uses to take you to your inbox:

new Sequence(["g", "i"], event => {
  // Code goes here
})

Killing a Sequence

You can easily kill a Sequence by calling it's kill() method.

Credits

This library was made by Aetinx for Latapals.