File tree 2 files changed +6
-5
lines changed
gui/src/components/mainInput
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -136,11 +136,6 @@ function InputToolbar(props: InputToolbarProps) {
136
136
) }
137
137
< EnterButton
138
138
offFocus = { props . usingCodebase }
139
- // disabled={
140
- // !active &&
141
- // (!(inputRef.current as any)?.value ||
142
- // typeof client === "undefined")
143
- // }
144
139
onClick = { ( e ) => {
145
140
props . onEnter ( {
146
141
useCodebase : isMetaEquivalentKeyPressed ( e ) ,
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ import {
53
53
getSlashCommandDropdownOptions ,
54
54
} from "./getSuggestion" ;
55
55
import { ComboBoxItem } from "./types" ;
56
+ import { usePostHog } from "posthog-js/react" ;
56
57
57
58
const InputBoxDiv = styled . div `
58
59
resize: none;
@@ -152,6 +153,8 @@ function TipTapEditor(props: TipTapEditorProps) {
152
153
153
154
const { saveSession } = useHistory ( dispatch ) ;
154
155
156
+ const posthog = usePostHog ( ) ;
157
+
155
158
const inSubmenuRef = useRef < string | undefined > ( undefined ) ;
156
159
const inDropdownRef = useRef ( false ) ;
157
160
@@ -285,10 +288,13 @@ function TipTapEditor(props: TipTapEditorProps) {
285
288
return true ;
286
289
} ,
287
290
"Alt-Enter" : ( ) => {
291
+ posthog . capture ( "gui_use_active_file_enter" ) ;
292
+
288
293
onEnterRef . current ( {
289
294
useCodebase : false ,
290
295
noContext : useActiveFile ,
291
296
} ) ;
297
+
292
298
return true ;
293
299
} ,
294
300
"Cmd-Backspace" : ( ) => {
You can’t perform that action at this time.
0 commit comments