stratus-keyboard

0.0.2 • Public • Published

Stratus:Keyboard

Build Status

Browserify module for scoped keybindings, used by Stratus Editor.

Usage

keyboard  = require "stratus-keyboard"

# Configure the scope.
keyboard "your-scope",
  "\n":        -> # select something...
  ".":         ->
  "Down":      ->
  "Control-s": -> # save a file...
  "Control-t": -> # open a tab...
  "otherwise": (key) ->

# Set the scope.
keyboard.scope "your-scope"

# Get the current scope.
keyboard.scope()
# => "your-scope"

License

See LICENSE.

Readme

Keywords

none

Package Sidebar

Install

npm i stratus-keyboard

Weekly Downloads

4

Version

0.0.2

License

none

Last publish

Collaborators

  • sentientwaffle