File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
ui/src/workflow/nodes/function-node Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 7272 <CodemirrorEditor
7373 v-model =" chat_data.code"
7474 @wheel =" wheel"
75- @keydown =" isKeyDown = true"
76- @keyup =" isKeyDown = false"
7775 style =" height : 130px !important "
7876 />
7977 <div class =" function-CodemirrorEditor__footer" >
@@ -126,16 +124,15 @@ import { isLastNode } from '@/workflow/common/data'
126124
127125const props = defineProps <{ nodeModel: any }>()
128126
129- const isKeyDown = ref (false )
130127const wheel = (e : any ) => {
131- if (isKeyDown . value ) {
128+ if (e . ctrlKey === true ) {
132129 e .preventDefault ()
130+ return true
133131 } else {
134132 e .stopPropagation ()
135133 return true
136134 }
137135}
138-
139136const FieldFormDialogRef = ref ()
140137const nodeCascaderRef = ref ()
141138
You can’t perform that action at this time.
0 commit comments