mirror of
https://github.com/jackhh66/ChatGPT_Web_accessToken.git
synced 2026-12-03 21:19:32 +00:00
feat: 判断小窗模式 ctrl+enter 发送消息 (#363)
This commit is contained in:
1 parent
2ff82b1249
commit
a689406b28
1 file changed
+6
@@ -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