[QTI] Existing formulas cannot be edited with the keyboard

Open
#6,468 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
JavaScript
Stars
214
Forks
327
Avg merge
17h 5m
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from learningequality/studio

All issues in learningequality/studio

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.