MCPcopy Index your code
hub / github.com/SamyPesse/draft-js-code / handleKeyCommand

Function handleKeyCommand

lib/handleKeyCommand.js:10–14  ·  view source on GitHub ↗

* Handle key command for code blocks * * @param {Draft.EditorState} editorState * @param {String} command * @return {Boolean}

(editorState, command)

Source from the content-addressed store, hash-verified

8 * @return {Boolean}
9 */
10function handleKeyCommand(editorState, command) {
11 if (command === 'backspace') {
12 return removeIndent(editorState);
13 }
14}
15
16module.exports = handleKeyCommand;

Callers 1

Calls 1

removeIndentFunction · 0.85

Tested by

no test coverage detected