Web development
Keyboard and Focus
Updated Oct 28, 2026
Users must be able to reach and operate interactive controls without a mouse. Maintain a logical tab order and a visible focus indicator. Avoid keyboard traps; a dialog should allow users to leave or
What you’ll learn
Understand and practise keyboard and focus.
Explanation
Users must be able to reach and operate interactive controls without a mouse. Maintain a logical tab order and a visible focus indicator. Avoid keyboard traps; a dialog should allow users to leave or close it using supported controls.
អ្នកប្រើត្រូវអាចទៅដល់ និងប្រើបញ្ជាដោយ keyboard។ រក្សាលំដាប់ Tab សមហេតុផល និងសញ្ញា focus ដែលមើលឃើញ។ កុំឱ្យ keyboard ជាប់ក្នុងផ្នែកដែលចេញមិនបាន។
Example
Press Tab to move through a form and check that focus is visible.
Practice
What should you check after opening a dialog with a keyboard?
Answer and explanation
Show answer / បង្ហាញចម្លើយ
Check that focus is usable inside it and that the dialog can be closed.
Quick recap
Users must be able to reach and operate interactive controls without a mouse.