ember-key-responder
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "ember-key-responder", | ||
"description": "cocoa inspired approach to keyboard event handling in ember", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"directories": { | ||
@@ -6,0 +6,0 @@ "doc": "doc", |
@@ -5,2 +5,24 @@ # Ember-key-responder | ||
## Usage | ||
* `npm install --save-dev ember-key-responder` | ||
```js | ||
// app/views/key-reponder-base.js | ||
import KeyResponderMixin from 'ember-key-responder/mixin'; | ||
export default Ember.View.extend({ | ||
acceptsKeyResponder: true, | ||
didInsertElement: function() { | ||
this.becomeKeyResponder(); | ||
this._super(); | ||
}, | ||
willDestroyElement: function() { | ||
this.resignKeyResponder(); | ||
this._super(); | ||
} | ||
}); | ||
``` | ||
## Installation | ||
@@ -7,0 +29,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20469
48
0