File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
<script lang="ts" setup>
2
2
import { usePrefs } from ' @/stores/prefs' ;
3
+ const { metaSymbol } = useShortcuts ()
3
4
4
5
const TOOL = ' tool'
5
6
65
66
const obj = await useRuns ().create (fileName , toolName .value , input , prefs .cache )
66
67
navigateTo ({name: ' run-run' , params: {run: obj .id }} )
67
68
}
69
+
70
+ defineShortcuts ({
71
+ ' meta_enter' : {
72
+ usingInput: true ,
73
+ handler : () => {
74
+ run ()
75
+ }
76
+ }
77
+ })
68
78
</script >
69
79
70
80
<template >
97
107
/>
98
108
<UTextarea
99
109
v-else
110
+ :autofocus =" true"
111
+ name =" stringArg"
100
112
v-model =" stringArg"
101
113
placeholder =" Optional free-form input"
102
114
class =" mb-2"
103
115
/>
104
116
105
117
<div class =" clearfix" >
106
118
<div class =" float-left mt-2" >
107
- <UButton icon =" i-heroicons-play-circle" label =" Run GPTScript" @click =" run" :disabled =" argsForm && !argsForm.valid" />
119
+ <UTooltip >
120
+ <template #text >
121
+ {{metaSymbol}} + Enter
122
+ </template >
123
+
124
+ <UButton icon =" i-heroicons-play-circle" @click =" run" :disabled =" argsForm && !argsForm.valid" >
125
+ Run
126
+ </UButton >
127
+ </UTooltip >
108
128
</div >
109
129
<div class =" float-right" >
110
130
<UFormGroup label =" Cache" size =" xs" >
You can’t perform that action at this time.
0 commit comments