ToolPal

键码查看器

按任意键查看JavaScript键盘事件属性:key、code、keyCode、which、location及修饰键状态。

⌨️
点击此处并按任意键
此区域将捕获键盘事件

常用特殊键

EnterTabSpaceBackspaceEscapeArrowUpArrowDownArrowLeftArrowRight

在上方捕获区域按这些键来查看其代码

使用方法

按任意键查看JavaScript键盘事件属性:key、code、keyCode、which、location及修饰键状态。

  1. 1Click the capture area to focus it.
  2. 2Press any key on your keyboard.
  3. 3See all keyboard event properties instantly: key, code, keyCode, which, location, and modifier states.
  4. 4Click 'Copy' next to any value to copy it to your clipboard.
  5. 5Check the 'Recent Keys' history to compare multiple key presses.

主要功能

  • Shows key, code, keyCode, which, charCode, location in real time
  • Displays modifier key states: Ctrl, Shift, Alt, Meta
  • Recent key history for easy comparison
  • One-click copy for each property value
  • Works entirely in the browser — no server needed

常见问题

了解更多