提交 cf973818 编写于 作者: View Design's avatar View Design

Update Ask.vue

上级 f7a8adaa
...@@ -64,6 +64,12 @@ defineShortcuts({ ...@@ -64,6 +64,12 @@ defineShortcuts({
handleAsk() handleAsk()
} }
}, },
escape: {
usingInput: 'queryInput',
handler: () => {
handleBlur()
}
},
meta_l: { meta_l: {
handler: () => { handler: () => {
handleFocus() handleFocus()
...@@ -73,6 +79,9 @@ defineShortcuts({ ...@@ -73,6 +79,9 @@ defineShortcuts({
function handleFocus () { function handleFocus () {
queryInput.value.textarea.focus() queryInput.value.textarea.focus()
} }
function handleBlur () {
queryInput.value.textarea.blur()
}
const continueQuestion = ref('') const continueQuestion = ref('')
function handleStop () { function handleStop () {
emits('stop') emits('stop')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册