feat: 判断小窗模式 ctrl+enter 发送消息 (#363)
This commit is contained in:
parent
2ff82b1249
commit
a689406b28
|
@ -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…
Reference in New Issue