Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
a browserify module for scoped key bindings
CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.

Something went wrong with that request. Please try again.