@wordpress/editor
Version:
Enhanced block editor for WordPress posts.
64 lines (63 loc) • 1.74 kB
JavaScript
// packages/editor/src/components/keyboard-shortcut-help-modal/config.js
import { __ } from "@wordpress/i18n";
var textFormattingShortcuts = [
{
keyCombination: { modifier: "primary", character: "b" },
description: __("Make the selected text bold.")
},
{
keyCombination: { modifier: "primary", character: "i" },
description: __("Make the selected text italic.")
},
{
keyCombination: { modifier: "primary", character: "k" },
description: __("Convert the selected text into a link.")
},
{
keyCombination: { modifier: "primaryShift", character: "k" },
description: __("Remove a link.")
},
{
keyCombination: { character: "[[" },
description: __("Insert a link to a post or page.")
},
{
keyCombination: { modifier: "primary", character: "u" },
description: __("Underline the selected text.")
},
{
keyCombination: { modifier: "access", character: "d" },
description: __("Strikethrough the selected text.")
},
{
keyCombination: { modifier: "access", character: "x" },
description: __("Make the selected text inline code.")
},
{
keyCombination: {
modifier: "access",
character: "0"
},
aliases: [
{
modifier: "access",
character: "7"
}
],
description: __("Convert the current heading to a paragraph.")
},
{
keyCombination: { modifier: "access", character: "1-6" },
description: __(
"Convert the current paragraph or heading to a heading of level 1 to 6."
)
},
{
keyCombination: { modifier: "primaryShift", character: "SPACE" },
description: __("Add non breaking space.")
}
];
export {
textFormattingShortcuts
};
//# sourceMappingURL=config.mjs.map