at path:
ROOT
/
wp-includes
/
js
/
dist
/
keyboard-shortcuts.js
run:
R
W
Run
development
DIR
2026-09-09 19:08:38
R
W
Run
script-modules
DIR
2026-09-09 19:24:58
R
W
Run
vendor
DIR
2026-09-09 19:24:59
R
W
Run
a11y.js
5.56 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
a11y.min.js
2.55 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
annotations.js
15.58 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
annotations.min.js
5.84 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
api-fetch.js
19.53 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
api-fetch.min.js
7.33 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
autop.js
9.78 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
autop.min.js
5.56 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
base-styles.js
115 By
2026-09-09 19:24:57
R
W
Run
Delete
Rename
base-styles.min.js
142 By
2026-09-09 19:24:58
R
W
Run
Delete
Rename
blob.js
2.35 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
blob.min.js
1.21 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
block-directory.js
372.69 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
block-directory.min.js
126.54 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
block-editor.js
3.6 MB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
block-editor.min.js
1.35 MB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
block-library.js
2.88 MB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
block-library.min.js
1.24 MB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
block-serialization-default-parser.js
6.64 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
block-serialization-default-parser.min.js
2.5 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
block-serialization-spec-parser.js
50.58 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
block-serialization-spec-parser.min.js
10.48 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
blocks.js
292.88 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
blocks.min.js
142.99 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
commands.js
128.65 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
commands.min.js
55.89 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
components.js
3.64 MB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
components.min.js
817.08 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
compose.js
83.74 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
compose.min.js
29.39 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
core-commands.js
29.11 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
core-commands.min.js
12.2 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
core-data.js
660 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
core-data.min.js
226.52 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
customize-widgets.js
111.55 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
customize-widgets.min.js
43.42 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
data-controls.js
4.2 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
data-controls.min.js
1.84 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
data.js
83.69 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
data.min.js
26.04 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
date.js
176.69 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
date.min.js
141.35 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
deprecated.js
3.11 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
deprecated.min.js
1.35 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
dom-ready.js
1.53 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
dom-ready.min.js
881 By
2026-09-09 19:24:58
R
W
Run
Delete
Rename
dom.js
35.12 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
dom.min.js
12.86 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
edit-post.js
440.78 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
edit-post.min.js
156.4 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
edit-site.js
2.2 MB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
edit-site.min.js
884.07 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
edit-widgets.js
180.29 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
edit-widgets.min.js
68.81 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
editor.js
3.78 MB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
editor.min.js
1.5 MB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
element.js
27.32 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
element.min.js
12.18 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
escape-html.js
2.36 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
escape-html.min.js
1.13 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
format-library.js
229.45 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
format-library.min.js
96.19 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
hooks.js
12.01 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
hooks.min.js
4.99 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
html-entities.js
1.71 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
html-entities.min.js
950 By
2026-09-09 19:24:58
R
W
Run
Delete
Rename
i18n.js
15.36 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
i18n.min.js
5.66 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
is-shallow-equal.js
2.77 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
is-shallow-equal.min.js
1.17 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
keyboard-shortcuts.js
10.26 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
keyboard-shortcuts.min.js
3.6 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
keycodes.js
8.36 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
keycodes.min.js
2.97 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
list-reusable-blocks.js
13.34 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
list-reusable-blocks.min.js
5.41 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
media-utils.js
1.02 MB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
media-utils.min.js
381.83 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
notices.js
9.55 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
notices.min.js
3.85 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
nux.js
4.32 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
nux.min.js
1.71 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
patterns.js
88.07 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
patterns.min.js
37.4 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
plugins.js
20.72 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
plugins.min.js
7.08 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
preferences-persistence.js
17.3 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
preferences-persistence.min.js
5.58 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
preferences.js
21.03 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
preferences.min.js
7.84 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
primitives.js
5.15 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
primitives.min.js
2.04 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
priority-queue.js
10.1 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
priority-queue.min.js
3.42 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
private-apis.js
4.42 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
private-apis.min.js
2.95 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
react-i18n.js
3.97 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
react-i18n.min.js
1.59 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
redux-routine.js
24.75 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
redux-routine.min.js
9.72 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
reusable-blocks.js
21.87 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
reusable-blocks.min.js
7.99 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
rich-text.js
104.89 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
rich-text.min.js
42.17 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
router.js
36.21 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
router.min.js
14.21 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
server-side-render.js
11.32 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
server-side-render.min.js
4.1 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
shortcode.js
8.02 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
shortcode.min.js
3.35 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
style-engine.js
18.37 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
style-engine.min.js
6.78 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
theme.js
135.48 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
theme.min.js
59.71 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
token-list.js
6.18 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
token-list.min.js
1.68 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
undo-manager.js
5.36 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
undo-manager.min.js
1.77 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
upload-media.js
115.27 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
upload-media.min.js
48.71 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
url.js
23.4 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
url.min.js
10.18 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
viewport.js
7.14 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
viewport.min.js
2.32 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
warning.js
1.58 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
warning.min.js
816 By
2026-09-09 19:24:58
R
W
Run
Delete
Rename
widgets.js
50.14 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
widgets.min.js
20.97 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
wordcount.js
7 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
wordcount.min.js
2.51 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
error_log
up
📄
keyboard-shortcuts.js
Save
(function() { "use strict"; var wp; (wp ||= {}).keyboardShortcuts = (() => { var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // package-external:@wordpress/data var require_data = __commonJS({ "package-external:@wordpress/data"(exports, module) { module.exports = window.wp.data; } }); // package-external:@wordpress/keycodes var require_keycodes = __commonJS({ "package-external:@wordpress/keycodes"(exports, module) { module.exports = window.wp.keycodes; } }); // package-external:@wordpress/element var require_element = __commonJS({ "package-external:@wordpress/element"(exports, module) { module.exports = window.wp.element; } }); // vendor-external:react/jsx-runtime var require_jsx_runtime = __commonJS({ "vendor-external:react/jsx-runtime"(exports, module) { module.exports = window.ReactJSXRuntime; } }); // packages/keyboard-shortcuts/build-module/index.mjs var index_exports = {}; __export(index_exports, { ShortcutProvider: () => ShortcutProvider, __unstableUseShortcutEventMatch: () => useShortcutEventMatch, store: () => store, useShortcut: () => useShortcut }); // packages/keyboard-shortcuts/build-module/store/index.mjs var import_data2 = __toESM(require_data(), 1); // packages/keyboard-shortcuts/build-module/store/reducer.mjs function reducer(state = {}, action) { switch (action.type) { case "REGISTER_SHORTCUT": return { ...state, [action.name]: { category: action.category, keyCombination: action.keyCombination, aliases: action.aliases, description: action.description } }; case "UNREGISTER_SHORTCUT": const { [action.name]: actionName, ...remainingState } = state; return remainingState; } return state; } var reducer_default = reducer; // packages/keyboard-shortcuts/build-module/store/actions.mjs var actions_exports = {}; __export(actions_exports, { registerShortcut: () => registerShortcut, unregisterShortcut: () => unregisterShortcut }); function registerShortcut({ name, category, description, keyCombination, aliases }) { return { type: "REGISTER_SHORTCUT", name, category, keyCombination, aliases, description }; } function unregisterShortcut(name) { return { type: "UNREGISTER_SHORTCUT", name }; } // packages/keyboard-shortcuts/build-module/store/selectors.mjs var selectors_exports = {}; __export(selectors_exports, { getAllShortcutKeyCombinations: () => getAllShortcutKeyCombinations, getAllShortcutRawKeyCombinations: () => getAllShortcutRawKeyCombinations, getCategoryShortcuts: () => getCategoryShortcuts, getShortcutAliases: () => getShortcutAliases, getShortcutDescription: () => getShortcutDescription, getShortcutKeyCombination: () => getShortcutKeyCombination, getShortcutRepresentation: () => getShortcutRepresentation }); var import_data = __toESM(require_data(), 1); var import_keycodes = __toESM(require_keycodes(), 1); var EMPTY_ARRAY = []; var FORMATTING_METHODS = { /** * Display formatting. */ display: import_keycodes.displayShortcut, /** * Raw shortcut formatting. */ raw: import_keycodes.rawShortcut, /** * ARIA label formatting. */ ariaLabel: import_keycodes.shortcutAriaLabel }; function getKeyCombinationRepresentation(shortcut, representation) { if (!shortcut) { return null; } return shortcut.modifier ? FORMATTING_METHODS[representation][shortcut.modifier]( shortcut.character ) : shortcut.character; } function getShortcutKeyCombination(state, name) { return state[name] ? state[name].keyCombination : null; } function getShortcutRepresentation(state, name, representation = "display") { const shortcut = getShortcutKeyCombination(state, name); return getKeyCombinationRepresentation(shortcut, representation); } function getShortcutDescription(state, name) { return state[name] ? state[name].description : null; } function getShortcutAliases(state, name) { return state[name] && state[name].aliases ? state[name].aliases : EMPTY_ARRAY; } var getAllShortcutKeyCombinations = (0, import_data.createSelector)( (state, name) => { return [ getShortcutKeyCombination(state, name), ...getShortcutAliases(state, name) ].filter( (combination) => !!combination ); }, (state, name) => [state[name]] ); var getAllShortcutRawKeyCombinations = (0, import_data.createSelector)( (state, name) => { return getAllShortcutKeyCombinations(state, name).map( (combination) => getKeyCombinationRepresentation(combination, "raw") ); }, (state, name) => [state[name]] ); var getCategoryShortcuts = (0, import_data.createSelector)( (state, categoryName) => { return Object.entries(state).filter(([, shortcut]) => shortcut.category === categoryName).map(([name]) => name); }, (state) => [state] ); // packages/keyboard-shortcuts/build-module/store/index.mjs var STORE_NAME = "core/keyboard-shortcuts"; var store = (0, import_data2.createReduxStore)(STORE_NAME, { reducer: reducer_default, actions: actions_exports, selectors: selectors_exports }); (0, import_data2.register)(store); // packages/keyboard-shortcuts/build-module/hooks/use-shortcut.mjs var import_element3 = __toESM(require_element(), 1); // packages/keyboard-shortcuts/build-module/hooks/use-shortcut-event-match.mjs var import_data3 = __toESM(require_data(), 1); var import_element = __toESM(require_element(), 1); var import_keycodes2 = __toESM(require_keycodes(), 1); function useShortcutEventMatch() { const { getAllShortcutKeyCombinations: getAllShortcutKeyCombinations2 } = (0, import_data3.useSelect)( store ); return (0, import_element.useCallback)( (name, event) => { return getAllShortcutKeyCombinations2(name).some( (combination) => { if (!combination) { return false; } return import_keycodes2.isKeyboardEvent[combination.modifier ?? "undefined"](event, combination.character); } ); }, [getAllShortcutKeyCombinations2] ); } // packages/keyboard-shortcuts/build-module/context.mjs var import_element2 = __toESM(require_element(), 1); var globalShortcuts = /* @__PURE__ */ new Set(); var globalListener = (event) => { for (const keyboardShortcut of globalShortcuts) { keyboardShortcut(event); } }; var context = (0, import_element2.createContext)({ add: (shortcut) => { if (globalShortcuts.size === 0) { document.addEventListener("keydown", globalListener); } globalShortcuts.add(shortcut); }, delete: (shortcut) => { globalShortcuts.delete(shortcut); if (globalShortcuts.size === 0) { document.removeEventListener("keydown", globalListener); } } }); context.displayName = "KeyboardShortcutsContext"; // packages/keyboard-shortcuts/build-module/hooks/use-shortcut.mjs function useShortcut(name, callback, { isDisabled = false } = {}) { const shortcuts = (0, import_element3.useContext)(context); const isMatch = useShortcutEventMatch(); const callbackRef = (0, import_element3.useRef)(); (0, import_element3.useEffect)(() => { callbackRef.current = callback; }, [callback]); (0, import_element3.useEffect)(() => { if (isDisabled) { return; } function _callback(event) { if (isMatch(name, event) && callbackRef.current) { callbackRef.current(event); } } shortcuts.add(_callback); return () => { shortcuts.delete(_callback); }; }, [name, isDisabled, shortcuts, isMatch]); } // packages/keyboard-shortcuts/build-module/components/shortcut-provider.mjs var import_element4 = __toESM(require_element(), 1); var import_jsx_runtime = __toESM(require_jsx_runtime(), 1); var { Provider } = context; function ShortcutProvider(props) { const [keyboardShortcuts] = (0, import_element4.useState)( () => /* @__PURE__ */ new Set() ); function onKeyDown(event) { if (props.onKeyDown) { props.onKeyDown(event); } const nativeEvent = event.nativeEvent; for (const keyboardShortcut of keyboardShortcuts) { keyboardShortcut(nativeEvent); } } return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: keyboardShortcuts, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ...props, onKeyDown }) }); } return __toCommonJS(index_exports); })(); (window.wp ||= {}).keyboardShortcuts = wp.keyboardShortcuts; })();