@fluentui/keyboard-key
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -5,6 +5,35 @@ { | ||
{ | ||
"date": "Fri, 08 May 2020 12:31:33 GMT", | ||
"date": "Tue, 26 May 2020 12:46:29 GMT", | ||
"tag": "@fluentui/keyboard-key_v0.2.0", | ||
"version": "0.2.0", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"comment": "docs: update README.md to show proper usage", | ||
"author": "olfedias@microsoft.com", | ||
"commit": "b72ef4c92db4c3f239d2ee35dee36234a9776bf3", | ||
"package": "@fluentui/keyboard-key" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Thu, 14 May 2020 12:34:32 GMT", | ||
"tag": "@fluentui/keyboard-key_v0.2.0", | ||
"version": "0.2.0", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"author": "czearing@outlook.com", | ||
"commit": "630f25da48bc86270288fbc5ccd4703cf6ea4d46", | ||
"package": "@fluentui/keyboard-key" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Fri, 08 May 2020 12:35:40 GMT", | ||
"tag": "@fluentui/keyboard-key_v0.2.0", | ||
"version": "0.2.0", | ||
"comments": { | ||
"minor": [ | ||
@@ -11,0 +40,0 @@ { |
# Change Log - @fluentui/keyboard-key | ||
This log was last generated on Fri, 08 May 2020 12:31:33 GMT and should not be manually modified. | ||
This log was last generated on Fri, 08 May 2020 12:35:40 GMT and should not be manually modified. | ||
@@ -9,3 +9,3 @@ <!-- Start content --> | ||
Fri, 08 May 2020 12:31:33 GMT | ||
Fri, 08 May 2020 12:35:40 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/keyboard-key_v0.1.7..@fluentui/keyboard-key_v0.2.0) | ||
@@ -12,0 +12,0 @@ |
@@ -78,3 +78,3 @@ define(["require", "exports"], function (require, exports) { | ||
250: 'Play', | ||
251: 'ZoomOut' | ||
251: 'ZoomOut', | ||
}; | ||
@@ -81,0 +81,0 @@ // Function Keys (F1-24) |
@@ -77,3 +77,3 @@ "use strict"; | ||
250: 'Play', | ||
251: 'ZoomOut' | ||
251: 'ZoomOut', | ||
}; | ||
@@ -80,0 +80,0 @@ // Function Keys (F1-24) |
@@ -75,3 +75,3 @@ /** | ||
250: 'Play', | ||
251: 'ZoomOut' | ||
251: 'ZoomOut', | ||
}; | ||
@@ -78,0 +78,0 @@ // Function Keys (F1-24) |
{ | ||
"name": "@fluentui/keyboard-key", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A simple utility for determining the KeyboardEvent.key property from a keyboard event.", | ||
@@ -5,0 +5,0 @@ "main": "lib-commonjs/index.js", |
@@ -50,7 +50,7 @@ # @fluentui/keyboard-key | ||
You can also get the normalized `keyCode` from an event. `keyboard-key` includes a hash of `key` names to `keyCode`s for easy comparisons: | ||
You can also get the normalized `keyCode` from an event. `@fluentui/keyboard-key` includes a hash of `key` names to `keyCode`s for easy comparisons: | ||
```js | ||
document.addEventListener('keydown', event => { | ||
const code = keyboardKey.getCode(event); | ||
const code = getCode(event); | ||
@@ -57,0 +57,0 @@ switch (code) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
110599
1749