Notify President Madagascar
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    stratus-keyboardpublic

    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.

    Keywords

    none

    install

    npm i stratus-keyboard

    Downloadslast 7 days

    0

    version

    0.0.2

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar