API Docs for: 0.0.1
Show:

HotkeysMixin Class

A mixin to enhance an Ember.View with hotkey support.

To use, inherit this mixin in your view:

MyView = Em.View.extend(HotkeysMixin, {
  hotkeysBindings: ['ctrl-a']

  actions: {
      'ctrl-a': function() {
          console.log("Ctrl-a was pressed!");
      }
  }
});

Item Index

Properties

concatenatedProperties

Array

Add hotkeysBindings property as a concatenatedProperties.