Repository navigation
Commit 8014a4c
committed
Restore caret position and ensure proper focus handling on focus updates
- after entering a symbol and re-focusing into the prompt field, cursor is moved to the very beginning
├── apps
│ └── editor
│ └── src
│ └── views
│ ├── prompt
│ │ ├── backend
│ │ │ ├── message-handlers
│ │ │ │ └── handle-hash-sign-quick-pick.ts
│ │ │ └── prompt-view-provider.ts
│ │ └── frontend
│ │ ├── Main
│ │ │ ├── Main.tsx
│ │ │ └── MainView
│ │ │ └── MainView.tsx
│ │ ├── Prompt.tsx
│ │ └── hooks
│ │ └── use-prompt
│ │ └── use-prompt.ts
│ └── shared
│ └── utils
│ └── hash-sign-quick-pick
│ ├── hash-sign-quick-pick.ts
│ └── symbols
│ └── index.ts
├── docs
│ └── api-tools
│ └── _category_.json
└── packages
└── ui
└── src
└── components
└── editor
└── common
└── prompts
└── PromptField
├── PromptField.tsx
└── hooks
└── use-handlers
├── handle-input-change.ts
├── handle-input-click.ts
└── use-handlers.ts1 parent eaac012 commit 8014a4c
1 file changed
Lines changed: 11 additions & 0 deletions
File tree
- packages/ui/src/components/editor/common/prompts/PromptField/hooks/use-handlers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
174 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
175 | 186 | | |
176 | 187 | | |
177 | 188 | | |
| |||
0 commit comments