-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
Copy pathconfig.js
39 lines (38 loc) · 1.04 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
export const 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.' ),
},
];