Skip to content

Commit d7c405f

Browse files
committed
Change agentic search shortcut and keycap from slash to F
- trigger agentic search with alt+F, not alt+/
1 parent 024bf1c commit d7c405f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/editor/src/views/prompt/frontend/Main/MainView/MainView.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ export const MainView: React.FC<Props> = (props) => {
464464
id: 'agentic-search',
465465
icon: 'codicon-search-sparkle',
466466
label: t('selected-files.agentic-search'),
467-
keycap: is_alt_pressed ? '/' : undefined,
467+
keycap: is_alt_pressed ? 'F' : undefined,
468468
on_click: props.on_agentic_search
469469
}
470470
]}

‎apps/editor/src/views/prompt/frontend/Main/MainView/components/PromptAttachments/PromptAttachments.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const PromptAttachments: React.FC<Props> = (props) => {
3838
id: 'agentic-search',
3939
icon: 'codicon-search-sparkle',
4040
label: props.translations.agentic_search,
41-
keycap: props.is_alt_pressed ? '/' : undefined,
41+
keycap: props.is_alt_pressed ? 'F' : undefined,
4242
on_click: props.on_agentic_search
4343
}
4444
]}

‎apps/editor/src/views/prompt/frontend/Main/MainView/hooks/use-keyboard-shortcuts.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const use_keyboard_shortcuts = (params: {
134134
return
135135
}
136136

137-
if (event.code == 'Slash' || event.key == '/') {
137+
if (event.code == 'KeyF') {
138138
event.preventDefault()
139139
params.on_agentic_search?.()
140140
return

0 commit comments

Comments
 (0)