Repository navigation
Commit 0d9bf1a
committed
Add keyboard shortcuts for tab navigation and management
- allow closing tab with the same keyboard shortcut as in google chrome e.g. cmd+w
- allow moving between tabs left/right with the same keyboard shortcut as in google chrome
- allow creating tabs with the same keyboard shortcut as in google chrome
├── apps
│ └── editor
│ └── src
│ └── views
│ └── prompt
│ └── frontend
│ ├── Main
│ │ ├── Main.tsx
│ │ └── MainView
│ │ └── MainView.tsx
│ ├── Prompt.tsx
│ └── hooks
│ └── use-prompt
│ ├── hooks
│ │ └── use-instructions.ts
│ └── use-prompt.ts
└── packages
└── ui
└── src
└── components
└── editor
└── common
└── prompts
└── PromptField
├── PromptField.tsx
├── components
│ └── Tabs
│ └── Tabs.tsx
└── hooks
├── use-handlers
│ └── handle-input-click.ts
└── use-keyboard-shortcuts.ts1 parent 91af289 commit 0d9bf1a
1 file changed
Lines changed: 48 additions & 0 deletions
File tree
- packages/ui/src/components/editor/common/prompts/PromptField/hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
143 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
144 | 192 | | |
145 | 193 | | |
146 | 194 | | |
| |||
0 commit comments