feat(im): 同步输入框状态以支持粘贴功能

im
YunaiV 2026-05-01 08:50:51 +08:00
parent 31dc1b1198
commit f5656c8a2f
1 changed files with 2 additions and 0 deletions

View File

@ -484,6 +484,8 @@ function onPaste(e: ClipboardEvent) {
const text = e.clipboardData?.getData('text/plain') || ''
if (text) {
nativeExec('insertText', text)
// @paste.prevent input 稿 / canSend insertText()
syncEditorState()
}
}