mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-07-20 19:39:40 +00:00
feat: 判断小窗模式 ctrl+enter 发送消息 (#363)
This commit is contained in:
@@ -305,6 +305,12 @@ function handleEnter(event: KeyboardEvent) {
|
||||
handleSubmit()
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (event.key === 'Enter' && event.ctrlKey) {
|
||||
event.preventDefault()
|
||||
handleSubmit()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleStop() {
|
||||
|
Reference in New Issue
Block a user