[QTI] Existing formulas cannot be edited with the keyboard

Aperta
#6,468 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript

Direzione di ricerca

Read LazyMathNodeView.vue and MathNodeView.vue at the referenced unstable commit, focusing on the formula edit control and its event bindings. Reproduce the keyboard flow by inserting a formula, tabbing back to it, and opening the dialog with the keyboard. Done means the edit control is focusable and identified, activation opens the dialog, and focus returns appropriately after saving, dismissing, or pressing Escape.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Target branch: unstable

Observed behavior

Existing formulas open the formula dialog on click only, before and after MathLive loads. This includes formulas imported as MathML with a TeX annotation, which the fix for #6309 keeps as formula nodes.

Expected behavior

  • An existing formula's edit control is keyboard-focusable and identifies the formula it edits.
  • Keyboard activation opens the dialog; saving or explicitly dismissing it returns focus to the trigger.
  • Escape closes the dialog and returns focus to the formula's edit control.
  • Dismissing by clicking another field leaves focus on that field and saves a changed formula exactly once.

User-facing consequences

Keyboard-only authors cannot change a formula after inserting it.

Steps to reproduce

  1. Edit a question, insert a formula, and close its dialog.
  2. Use Tab to navigate back to the formula and try to reopen it without a pointer.
  3. Repeat with an uploaded QTI question whose prompt holds <math> with an application/x-tex annotation.

Context

Studio unstable at 2713cbf33; LazyMathNodeView.vue and MathNodeView.vue.

AI usage

Codex drafted this issue from the revised plan. It checked keyboard reachability against the upstream node view markup and event bindings.

Lingua principale
JavaScript
Stelle
214
Fork
327
Merge medio
17h 5m
PR unite (30g)
25

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di learningequality/studio

Tutte le issue di learningequality/studio

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.