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 2ff82b1 commit a689406
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 a689406

Please sign in to comment.