Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-key-responder

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-key-responder - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc