feat: 判断小窗模式 ctrl+enter 发送消息 (#363)

This commit is contained in:
CornerSkyless 2023-03-07 17:54:22 +08:00 committed by GitHub
parent 2ff82b1249
commit a689406b28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -305,6 +305,12 @@ function handleEnter(event: KeyboardEvent) {
handleSubmit()
}
}
else {
if (event.key === 'Enter' && event.ctrlKey) {
event.preventDefault()
handleSubmit()
}
}
}
function handleStop() {