mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 04:20:36 +08:00
optimization: remove debug code
This commit is contained in:
parent
70023e526a
commit
dc82145d00
@ -99,7 +99,6 @@ class ContentState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render (isRenderCursor = true) {
|
render (isRenderCursor = true) {
|
||||||
console.log('render')
|
|
||||||
const { blocks, cursor, searchMatches: { matches, index } } = this
|
const { blocks, cursor, searchMatches: { matches, index } } = this
|
||||||
const activeBlocks = this.getActiveBlocks()
|
const activeBlocks = this.getActiveBlocks()
|
||||||
matches.forEach((m, i) => {
|
matches.forEach((m, i) => {
|
||||||
@ -112,7 +111,6 @@ class ContentState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
partialRender (blocks) {
|
partialRender (blocks) {
|
||||||
console.log('partialrender')
|
|
||||||
const { cursor, searchMatches: { matches, index } } = this
|
const { cursor, searchMatches: { matches, index } } = this
|
||||||
const activeBlocks = this.getActiveBlocks()
|
const activeBlocks = this.getActiveBlocks()
|
||||||
matches.forEach((m, i) => {
|
matches.forEach((m, i) => {
|
||||||
|
@ -280,7 +280,7 @@ const updateCtrl = ContentState => {
|
|||||||
// bugfix: #67 problem 1
|
// bugfix: #67 problem 1
|
||||||
if (block && block.icon) return event.preventDefault()
|
if (block && block.icon) return event.preventDefault()
|
||||||
|
|
||||||
if (isMetaKey(event) || event.key === EVENT_KEYS.Enter) {
|
if (isMetaKey(event)) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user