1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Merge pull request #267 from asmsuechan/fix-ctrl-e-shortcut

Fix Ctrl + E shortcut on escape from CodeEditor
This commit is contained in:
Sota Sugiura
2017-01-28 12:48:32 +09:00
committed by GitHub

View File

@@ -77,6 +77,7 @@ class MarkdownEditor extends React.Component {
}
handleBlur (e) {
this.setState({ keyPressed: [] })
let { config } = this.props
if (config.editor.switchPreview === 'BLUR') {
let cursorPosition = this.refs.code.editor.getCursor()