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

main
CornerSkyless 2 years ago committed by GitHub
parent 2ff82b1249
commit a689406b28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save