Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* External dependencies
*/
import { rawShortcut, displayShortcut } from '@wordpress/keycodes';
export default {
toggleEditorMode: {
value: rawShortcut.secondary( 'm' ),
label: displayShortcut.secondary( 'm' ),
},
};
/**
* WordPress dependencies
*/
import { rawShortcut, displayShortcut, shortcutAriaLabel } from '@wordpress/keycodes';
export default {
toggleEditorMode: {
raw: rawShortcut.secondary( 'm' ),
display: displayShortcut.secondary( 'm' ),
},
toggleSidebar: {
raw: rawShortcut.primaryShift( ',' ),
display: displayShortcut.primaryShift( ',' ),
ariaLabel: shortcutAriaLabel.primaryShift( ',' ),
},
};