Skip to content

Commit

Permalink
feat: 判断小窗模式 ctrl+enter 发送消息 (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
CornerSkyless authored Mar 7, 2023
1 parent 0c71428 commit 2ad7443
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/views/chat/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ function handleEnter(event: KeyboardEvent) {
handleSubmit()
}
}
else {
if (event.key === 'Enter' && event.ctrlKey) {
event.preventDefault()
handleSubmit()
}
}
}
function handleStop() {
Expand Down

0 comments on commit 2ad7443

Please sign in to comment.