Neverending Pile of Messages

    This package has been deprecated

    Author message:

    Package no longer supported. Use github.com/abcum/ascua instead.

    @abcum/ember-hotkey

    2.0.3 • Public • Published

    ember-hotkey

    An Ember.js component for reacting to keyboard events.

    Usage

    Installation

    ember install @abcum/ember-hotkey

    General usage

    The key attribute defines which keyboard key must be pressed to activate the callback.

    {{hot-key key="s" meta=true on-press=(action 'save')}} {{!-- cmd+s --}}

    The modifier attributes alt, meta, ctrl, shift can be can be used to enable advanced key combinations.

    {{hot-key key="v" ctrl=true on-press=(action 'paste')}} {{!-- ctrl+v --}}

    Add multiple modifiers to specify combinations of keys which need to be pressed together in order to activate the callback.

    {{hot-key key="3" meta=true shift=true on-press=(action 'screenshot')}} {{!-- cmd+shift+3 --}}

    Development

    • make install (install bower and ember-cli dependencies)
    • make upgrade (upgrade ember-cli to the specified version)
    • make tests (run all tests defined in the package)

    Keywords

    Install

    npm i @abcum/ember-hotkey

    DownloadsWeekly Downloads

    33

    Version

    2.0.3

    License

    MIT

    Unpacked Size

    9.18 kB

    Total Files

    12

    Last publish

    Collaborators

    • tobiemh