Skip to content

Commit

Permalink
fix: 修复谷歌内容为空时拼音输入第一个字母丢失的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
q378532364 committed Oct 8, 2021
1 parent feac0af commit 52301c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/text/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,9 @@ class Text {
// 键盘 down 时的 hooks
$textElem.on('keydown', (e: KeyboardEvent) => {
const keydownEvents = eventHooks.keydownEvents
keydownEvents.forEach(fn => fn(e))
setTimeout(() => {
keydownEvents.forEach(fn => fn(e))
})
})

// delete 键 up 时 hooks
Expand Down

0 comments on commit 52301c1

Please sign in to comment.