This is a small extension that improves the input focus behaviour in lessons on the På Vei website and other Cappelen Damm courses (such as Stein på Stein and Her på Berget).
- When opening a lesson, the input focus is set to the first input field.
- Pressing the
Enter
key in a lesson is the same as clicking theNeste
button, unless a button is focused. - When a lesson is completed, the
Prøv igjen
button is focused if the lesson is failed, and theNeste
button is focused if the lesson is passed.- If the
Prøv igjen
button is pressed, the input focus is set to the first input field. - If the
Neste
button is pressed, the input focus is set to the first input field in the next lesson. - If the lesson is the last lesson in the chapter, the input focus is set to the
Neste
orOppsummering
button in the chapter navigation.
- If the