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

akutil-common

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

akutil-common - npm Package Compare versions

Comparing version 2.4.3 to 2.4.4

15

CHANGELOG.md

@@ -1,6 +0,16 @@

<a name="2.4.3"></a>
## 2.4.3 (2016-09-08)
<a name="2.4.4"></a>
## 2.4.4 (2016-09-17)
<a name="akutil-common@2.4.4"></a>
## akutil-common@2.4.4 (2016-09-17)
### Bug Fixes
* Do not use shadowRoot symbol ([45a8d3c](https://bitbucket.org/atlassian/atlaskit/commits/45a8d3c))
<a name="akutil-common@2.4.3"></a>

@@ -12,2 +22,3 @@ ## akutil-common@2.4.3 (2016-09-08)

* **component:** Fix on container name overflow and container link overflow ellipsis ([d2b733d](https://bitbucket.org/atlassian/atlaskit/commits/d2b733d))
* keypress handler now passes on event object ([0c53584](https://bitbucket.org/atlassian/atlaskit/commits/0c53584))

@@ -14,0 +25,0 @@

3

package.json
{
"name": "akutil-common",
"version": "2.4.3",
"version": "2.4.4",
"description": "",

@@ -22,2 +22,3 @@ "main": "dist/bundle.js",

"devDependencies": {
"akutil-common-test": "^1.5.1",
"custom-event-polyfill": "^0.3.0"

@@ -24,0 +25,0 @@ },

@@ -17,16 +17,20 @@ # AtlasKit common utilities

| --- | --- | --- |
| key | String | A named key. Case insensitive. |
| callback | function | A callback function to invoke if the given key was activated. The callback is passed the event object. |
| [elem] | Node | The element to listen for the key activation. Defaults to document if none given. |
| key | <code>String</code> | A named key. Case insensitive. |
| callback | <code>function</code> | A callback function to invoke if the given key was activated. The callback is passed the event object. |
| [elem] | <code>Node</code> | The element to listen for the key activation. Defaults to document if none given. |
<a name="KeyPressHandler+add"></a>
### `keyPressHandler.add(key, callback)`
Adds or replaces a key that is listened for.
**Kind**: instance method of KeyPressHandler
**Kind**: instance method of <code>[KeyPressHandler](#KeyPressHandler)</code>
| Param | Type | Description |
| --- | --- | --- |
| key | String | A named key. Case insensitive. Replaces any previous listened key. |
| callback | function | The callback function to invoke. |
| key | <code>String</code> | A named key. Case insensitive. Replaces any previous listened key. |
| callback | <code>function</code> | The callback function to invoke. |
<a name="KeyPressHandler+destroy"></a>
### `keyPressHandler.destroy([key])`

@@ -36,7 +40,6 @@ Removes a key from the list of listened keys.

**Kind**: instance method of KeyPressHandler
**Kind**: instance method of <code>[KeyPressHandler](#KeyPressHandler)</code>
| Param | Type | Description |
| --- | --- | --- |
| [key] | String | A named key. Case insensitive. If none given, event listener is removed. |
| [key] | <code>String</code> | A named key. Case insensitive. If none given, event listener is removed. |
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