optimization: remove debug code

This commit is contained in:
Jocs 2018-05-01 21:25:43 +08:00
parent 70023e526a
commit dc82145d00
2 changed files with 1 additions and 3 deletions

View File

@ -99,7 +99,6 @@ class ContentState {
}
render (isRenderCursor = true) {
console.log('render')
const { blocks, cursor, searchMatches: { matches, index } } = this
const activeBlocks = this.getActiveBlocks()
matches.forEach((m, i) => {
@ -112,7 +111,6 @@ class ContentState {
}
partialRender (blocks) {
console.log('partialrender')
const { cursor, searchMatches: { matches, index } } = this
const activeBlocks = this.getActiveBlocks()
matches.forEach((m, i) => {

View File

@ -280,7 +280,7 @@ const updateCtrl = ContentState => {
// bugfix: #67 problem 1
if (block && block.icon) return event.preventDefault()
if (isMetaKey(event) || event.key === EVENT_KEYS.Enter) {
if (isMetaKey(event)) {
return
}