This commit is contained in:
team3
2026-06-22 11:36:42 +02:00
parent 4f1f8d18d0
commit 2d1a3d3e37
3 changed files with 17 additions and 21 deletions

View File

@@ -42,7 +42,8 @@ function onKeyUp(e) {
}
function resetAlt() { altAlone = false } // Fenster-Blur (ALT+Tab) → kein falscher Tipp
function toggleInput() {
const el = rightEl.value?.querySelector('textarea')
// Antwortfeld der aktuellen Form: Erklären = textarea, Lückentext-frei = input.
const el = rightEl.value?.querySelector('textarea, input')
if (!el) return
document.activeElement === el ? el.blur() : el.focus()
}