[QTI] Existing formulas cannot be edited with the keyboard

Aberta
#6,468 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
javascript

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
JavaScript
Estrelas
214
Forks
327
Merge médio
17h 5min
PRs com merge (30d)
25

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de learningequality/studio

Todas as issues de learningequality/studio

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.