a browserify module for scoped key bindings
CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
index.coffee
package.json

README.md

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.