@wordpress/keycodes
Advanced tools
Comparing version 2.10.0 to 2.11.0
@@ -37,3 +37,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
* | ||
* @typedef {{[M in WPKeycodeModifier]:(key:string)=>any}} WPKeycodeHandlerByModifier | ||
* @typedef {Record<WPKeycodeModifier, (key:string)=>any>} WPKeycodeHandlerByModifier | ||
*/ | ||
@@ -117,2 +117,7 @@ | ||
/** | ||
* Keycode for ZERO key. | ||
*/ | ||
export var ZERO = 48; | ||
/** | ||
* Object that contains functions that return the available modifier | ||
@@ -119,0 +124,0 @@ * depending on platform. |
@@ -8,3 +8,3 @@ "use strict"; | ||
}); | ||
exports.isKeyboardEvent = exports.shortcutAriaLabel = exports.displayShortcut = exports.displayShortcutList = exports.rawShortcut = exports.modifiers = exports.SHIFT = exports.COMMAND = exports.CTRL = exports.ALT = exports.F10 = exports.DELETE = exports.DOWN = exports.RIGHT = exports.UP = exports.LEFT = exports.SPACE = exports.ESCAPE = exports.ENTER = exports.TAB = exports.BACKSPACE = void 0; | ||
exports.isKeyboardEvent = exports.shortcutAriaLabel = exports.displayShortcut = exports.displayShortcutList = exports.rawShortcut = exports.modifiers = exports.ZERO = exports.SHIFT = exports.COMMAND = exports.CTRL = exports.ALT = exports.F10 = exports.DELETE = exports.DOWN = exports.RIGHT = exports.UP = exports.LEFT = exports.SPACE = exports.ESCAPE = exports.ENTER = exports.TAB = exports.BACKSPACE = void 0; | ||
@@ -52,3 +52,3 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
* | ||
* @typedef {{[M in WPKeycodeModifier]:(key:string)=>any}} WPKeycodeHandlerByModifier | ||
* @typedef {Record<WPKeycodeModifier, (key:string)=>any>} WPKeycodeHandlerByModifier | ||
*/ | ||
@@ -145,2 +145,8 @@ | ||
/** | ||
* Keycode for ZERO key. | ||
*/ | ||
exports.SHIFT = SHIFT; | ||
var ZERO = 48; | ||
/** | ||
* Object that contains functions that return the available modifier | ||
@@ -161,3 +167,3 @@ * depending on platform. | ||
exports.SHIFT = SHIFT; | ||
exports.ZERO = ZERO; | ||
var modifiers = { | ||
@@ -164,0 +170,0 @@ primary: function primary(_isApple) { |
{ | ||
"name": "@wordpress/keycodes", | ||
"version": "2.10.0", | ||
"version": "2.11.0", | ||
"description": "Keycodes utilities for WordPress. Used to check for keyboard events across browsers/operating systems.", | ||
@@ -25,4 +25,4 @@ "author": "The WordPress Contributors", | ||
"dependencies": { | ||
"@babel/runtime": "^7.8.3", | ||
"@wordpress/i18n": "^3.10.0", | ||
"@babel/runtime": "^7.9.2", | ||
"@wordpress/i18n": "^3.11.0", | ||
"lodash": "^4.17.15" | ||
@@ -33,3 +33,3 @@ }, | ||
}, | ||
"gitHead": "6e2ca778fb69c67188479b491cf2e802011d72e2" | ||
"gitHead": "65dbf3a9503402ca3837090dc89d0207f7d96352" | ||
} |
@@ -165,5 +165,9 @@ # Keycodes | ||
<a name="ZERO" href="#ZERO">#</a> **ZERO** | ||
Keycode for ZERO key. | ||
<!-- END TOKEN(Autogenerated API docs) --> | ||
<br/><br/><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Code is Poetry." /></p> |
@@ -35,3 +35,3 @@ /** | ||
* | ||
* @typedef {{[M in WPKeycodeModifier]:(key:string)=>any}} WPKeycodeHandlerByModifier | ||
* @typedef {Record<WPKeycodeModifier, (key:string)=>any>} WPKeycodeHandlerByModifier | ||
*/ | ||
@@ -99,2 +99,6 @@ | ||
export const SHIFT = 'shift'; | ||
/** | ||
* Keycode for ZERO key. | ||
*/ | ||
export const ZERO = 48; | ||
@@ -101,0 +105,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
95418
1349
173
Updated@babel/runtime@^7.9.2
Updated@wordpress/i18n@^3.11.0