1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Fix if clauses

This commit is contained in:
asmsuechan
2017-03-12 16:04:00 -07:00
parent e78492983a
commit c3e92b3b81

View File

@@ -160,6 +160,7 @@ class MarkdownEditor extends React.Component {
}
handleKeyDown(e) {
if (this.state.status !== 'CODE') return false
const keyPressed = Object.assign(this.state.keyPressed, {
[e.key]: true
})
@@ -168,7 +169,7 @@ class MarkdownEditor extends React.Component {
if (!this.state.isLocked && this.state.status === 'CODE' && this.escapeFromEditor.every(isNoteHandlerKey)) {
document.activeElement.blur()
}
if (this.state.status === 'CODE' && this.supportBold.every(isNoteHandlerKey)) {
if (this.supportBold.every(isNoteHandlerKey)) {
this.addMdAndMoveCaretToCenter('****')
}
}