update
This commit is contained in:
@@ -592,14 +592,6 @@ const wahlWidget = computed(() => {
|
||||
if (zeigeForm.value === 'lueckentext' && lueckAktuell.value && !lueckAktuell.value.schwer) return lueckAktuell.value
|
||||
return null
|
||||
})
|
||||
// Eingabefeld der aktuellen Form (Lückentext frei / Erklären) — für „Alt fokussiert".
|
||||
function eingabeFeld() {
|
||||
if (zeigeForm.value === 'lueckentext' && lueckAktuell.value && lueckAktuell.value.schwer && !lueckAktuell.value.fertig) {
|
||||
return document.getElementById('bp-lueck-input')
|
||||
}
|
||||
if (zeigeForm.value === 'erklaeren' && pruefPhase.value === 'frage_offen') return pruefInputEl.value
|
||||
return null
|
||||
}
|
||||
// Nach einer Antwort: bei Meilenstein-Überschreitung in den neuen Abschnitt, sonst nächste Frage.
|
||||
function weiterAktion() {
|
||||
if (abschnittWechsel.value) zumNaechstenAbschnitt()
|
||||
@@ -621,12 +613,9 @@ function primaerAktion() {
|
||||
function onPruefKey(e) {
|
||||
if (e.repeat) return
|
||||
if (props.mode !== 'full' || activeTab.value !== 'pruefung') return
|
||||
// Alt allein → ins Eingabefeld (Lückentext frei / Erklären), wie bei Frage-Antwort.
|
||||
if (e.key === 'Alt') {
|
||||
const el = eingabeFeld()
|
||||
if (el) { e.preventDefault(); el.focus() }
|
||||
return
|
||||
}
|
||||
// Alt allein toggelt der Fokus (BausteinFokus lone-tap) → hier NICHT fokussieren,
|
||||
// sonst kämpfen keydown-Fokus (hier) und keyup-Toggle (Fokus) → „nur beim Halten".
|
||||
if (e.key === 'Alt') return
|
||||
if (!e.altKey) {
|
||||
// Nackte 1–4: Wahl-Widget toggeln — aber nicht, während ein Textfeld den Fokus hat.
|
||||
if (['1', '2', '3', '4'].includes(e.key) && wahlWidget.value && !wahlWidget.value.fertig) {
|
||||
|
||||
Reference in New Issue
Block a user