feat: attach desktop file paths as editable learner chips
This commit is contained in:
@@ -114,7 +114,7 @@ export function DraftShell({
|
||||
// Tab navigates INTO the composer (owner, keyboard round 2026-10-06):
|
||||
// the only text field on this surface — the cycle's whole chain.
|
||||
const cycleComposer = useCallback((): readonly HTMLElement[] =>
|
||||
Array.from(document.querySelectorAll<HTMLElement>('[data-testid="composer"] textarea')),
|
||||
Array.from(document.querySelectorAll<HTMLElement>('[data-testid="composer"] [data-file-path-input]')),
|
||||
[]);
|
||||
useFieldCycle(cycleComposer);
|
||||
const dictation = useDictation({
|
||||
@@ -138,7 +138,7 @@ export function DraftShell({
|
||||
};
|
||||
/* Run end focuses the composer (owner, 2026-10-01): the hands are on
|
||||
* the keyboard from the stop — falling edge of `active` only. */
|
||||
const composerInputRef = useRef<HTMLTextAreaElement>(null);
|
||||
const composerInputRef = useRef<HTMLDivElement>(null);
|
||||
const dictationWasActiveRef = useRef(false);
|
||||
useEffect(() => {
|
||||
if (dictation.active) {
|
||||
|
||||
Reference in New Issue
Block a user