键盘测试
测试键盘上的每个按键,查看实时按键代码和修饰符,并检测意外粘连或重复的按键。
测试接口
按“开始”后,您的浏览器可能会请求许可。如何使用这个工具
- Click inside the test area so it receives keyboard focus.
- Press keys one at a time and watch them light up on the layout.
- Check the key code, location, and modifier status for each press.
- Use Reset to clear tested keys or change the layout if needed.
广告
技术说明
The page listens for keydown and keyup events and reads event.code, event.key, event.location, and modifier flags. event.code describes the physical key position; event.key reflects the character produced, which varies with layout and modifiers.
The test never reads input from other applications and cannot see keys pressed while the page is not focused. It also cannot inspect a keyboard at the firmware level.
故障排除
A key does not highlight
Click the test area first, then try the key again. Browser shortcuts may be intercepted before the page receives them.
Wrong character appears
The operating-system keyboard layout may differ from the layout shown. Switch layouts or use the key-code display.
Keys repeat
Check the operating-system repeat settings. A stuck key usually repeats even after release; a hardware fault may require service.
Media keys do nothing
Many media and function keys are handled by the operating system and never reach the browser.
相关工具
常见问题
广告