Skip to content

Commit

Permalink
fix: 删除文字的时候前一张图片不会被删除
Browse files Browse the repository at this point in the history
  • Loading branch information
guqianfeng committed Dec 19, 2021
1 parent 38b4b22 commit 7c63218
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/text/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,7 @@ class Text {
// 键盘 down 时的 hooks
$textElem.on('keydown', (e: KeyboardEvent) => {
const keydownEvents = eventHooks.keydownEvents
setTimeout(() => {
keydownEvents.forEach(fn => fn(e))
})
keydownEvents.forEach(fn => fn(e))
})

// delete 键 up 时 hooks
Expand Down

0 comments on commit 7c63218

Please sign in to comment.