Shortcuts

A simple library for handling keyboard shortcuts in Javascript.

Single Keys

It's possible to bind single keys to a task.

s key toggles search box.

o key toggles options panel.

d and l keys toggle dark/light mode.

Combination of Keys

ctrl+shift+1 ctrl+shift+2 will toggle the active state of the buttons below.

Overriding Defaults

ctrl+a will add active class to the below items and will override default behaviour that selects all of the page.

ctrl+d will remove active class from the below items and will override default behaviour that adds the page as a bookmark.

  • Cras justo odio
  • Dapibus ac facilisis in
  • Morbi leorisus
  • Porta ac consectetur ac
  • Vestibulum at eros

Wrapping

ctrl+s will only work when cursor is in one of the inputs so the form is in focus. Will show spinner on the submit button for a second.