Skip to content

Commit 4a1dd26

Browse files
committed
fix(hotkeys): remove C, T, E tab-switching hotkeys (#3197)
1 parent ae43131 commit 4a1dd26

File tree

8 files changed

+0
-69
lines changed

8 files changed

+0
-69
lines changed

apps/docs/content/docs/de/keyboard-shortcuts/index.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ Diese Tastenkombinationen wechseln zwischen den Panel-Tabs auf der rechten Seite
4141

4242
| Tastenkombination | Aktion |
4343
|----------|--------|
44-
| `C` | Copilot-Tab fokussieren |
45-
| `T` | Toolbar-Tab fokussieren |
46-
| `E` | Editor-Tab fokussieren |
4744
| `Mod` + `F` | Toolbar-Suche fokussieren |
4845

4946
## Globale Navigation

apps/docs/content/docs/en/keyboard-shortcuts/index.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ These shortcuts switch between panel tabs on the right side of the canvas.
4343

4444
| Shortcut | Action |
4545
|----------|--------|
46-
| `C` | Focus Copilot tab |
47-
| `T` | Focus Toolbar tab |
48-
| `E` | Focus Editor tab |
4946
| `Mod` + `F` | Focus Toolbar search |
5047

5148
## Global Navigation

apps/docs/content/docs/es/keyboard-shortcuts/index.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ Estos atajos cambian entre las pestañas del panel en el lado derecho del lienzo
4242

4343
| Atajo | Acción |
4444
|----------|--------|
45-
| `C` | Enfocar pestaña Copilot |
46-
| `T` | Enfocar pestaña Barra de herramientas |
47-
| `E` | Enfocar pestaña Editor |
4845
| `Mod` + `F` | Enfocar búsqueda de Barra de herramientas |
4946

5047
## Navegación global

apps/docs/content/docs/fr/keyboard-shortcuts/index.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ Ces raccourcis permettent de basculer entre les onglets du panneau sur le côté
4242

4343
| Raccourci | Action |
4444
|----------|--------|
45-
| `C` | Activer l'onglet Copilot |
46-
| `T` | Activer l'onglet Barre d'outils |
47-
| `E` | Activer l'onglet Éditeur |
4845
| `Mod` + `F` | Activer la recherche dans la barre d'outils |
4946

5047
## Navigation globale

apps/docs/content/docs/ja/keyboard-shortcuts/index.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ import { Callout } from 'fumadocs-ui/components/callout'
4141

4242
| ショートカット | 操作 |
4343
|----------|--------|
44-
| `C` | Copilotタブにフォーカス |
45-
| `T` | Toolbarタブにフォーカス |
46-
| `E` | Editorタブにフォーカス |
4744
| `Mod` + `F` | Toolbar検索にフォーカス |
4845

4946
## グローバルナビゲーション

apps/docs/content/docs/zh/keyboard-shortcuts/index.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ import { Callout } from 'fumadocs-ui/components/callout'
4141

4242
| 快捷键 | 操作 |
4343
|----------|--------|
44-
| `C` | 聚焦 Copilot 标签页 |
45-
| `T` | 聚焦 Toolbar 标签页 |
46-
| `E` | 聚焦 Editor 标签页 |
4744
| `Mod` + `F` | 聚焦 Toolbar 搜索 |
4845

4946
## 全局导航

apps/sim/app/workspace/[workspaceId]/utils/commands-utils.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ export type CommandId =
1313
| 'goto-logs'
1414
| 'open-search'
1515
| 'run-workflow'
16-
| 'focus-copilot-tab'
17-
| 'focus-toolbar-tab'
18-
| 'focus-editor-tab'
1916
| 'clear-terminal-console'
2017
| 'focus-toolbar-search'
2118
| 'clear-notifications'
@@ -75,21 +72,6 @@ export const COMMAND_DEFINITIONS: Record<CommandId, CommandDefinition> = {
7572
shortcut: 'Mod+Enter',
7673
allowInEditable: false,
7774
},
78-
'focus-copilot-tab': {
79-
id: 'focus-copilot-tab',
80-
shortcut: 'C',
81-
allowInEditable: false,
82-
},
83-
'focus-toolbar-tab': {
84-
id: 'focus-toolbar-tab',
85-
shortcut: 'T',
86-
allowInEditable: false,
87-
},
88-
'focus-editor-tab': {
89-
id: 'focus-editor-tab',
90-
shortcut: 'E',
91-
allowInEditable: false,
92-
},
9375
'clear-terminal-console': {
9476
id: 'clear-terminal-console',
9577
shortcut: 'Mod+D',

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,7 @@ export const Panel = memo(function Panel() {
340340
* Register global keyboard shortcuts using the central commands registry.
341341
*
342342
* - Mod+Enter: Run / cancel workflow (matches the Run button behavior)
343-
* - C: Focus Copilot tab
344-
* - T: Focus Toolbar tab
345-
* - E: Focus Editor tab
346343
* - Mod+F: Focus Toolbar tab and search input
347-
*
348-
* The tab-switching commands are disabled inside editable elements so typing
349-
* in inputs or textareas is not interrupted.
350344
*/
351345
useRegisterGlobalCommands(() =>
352346
createCommands([
@@ -363,33 +357,6 @@ export const Panel = memo(function Panel() {
363357
allowInEditable: false,
364358
},
365359
},
366-
{
367-
id: 'focus-copilot-tab',
368-
handler: () => {
369-
setActiveTab('copilot')
370-
},
371-
overrides: {
372-
allowInEditable: false,
373-
},
374-
},
375-
{
376-
id: 'focus-toolbar-tab',
377-
handler: () => {
378-
setActiveTab('toolbar')
379-
},
380-
overrides: {
381-
allowInEditable: false,
382-
},
383-
},
384-
{
385-
id: 'focus-editor-tab',
386-
handler: () => {
387-
setActiveTab('editor')
388-
},
389-
overrides: {
390-
allowInEditable: false,
391-
},
392-
},
393360
{
394361
id: 'focus-toolbar-search',
395362
handler: () => {

0 commit comments

Comments
 (0)