Skip to content

feat: JavaScript KeyCode & Keyboard Event Inspector — interactive key visualizer for DOM events #101

Description

@ajithakdev

Summary

Add a real-time Keyboard Event and KeyCode Inspector (a clean, zero-ad modern successor to keycode.info) that captures keypresses and displays modern DOM KeyboardEvent properties.

Motivation

Front-end developers frequently build keyboard navigation, hotkey bindings, and accessibility handlers. The classic sites used to check event.key, event.code, and modifier states are covered in display ads and popups. A clean, frosted-glass keycode inspector in Toolglass makes hotkey development effortless.

Features

  • Live Event Listener: Pressing any key immediately updates the frosted display with:
    • event.key (e.g. "Enter", "ArrowUp", "a").
    • event.code (physical key code, e.g. "KeyA", "Digit1").
    • event.keyCode / which (with a 'deprecated' badge for developer education).
    • event.location (Standard, Left, Right, Numpad).
  • Modifier Badges: Live glowing pill indicators for Shift, Ctrl, Alt, and Meta (⌘ / Win).
  • Code Snippet Generator: One-click copy for ready-to-use JavaScript/TypeScript switch-case and if condition snippets.
  • Event History: Bottom drawer listing the last 10 pressed keys.

Engineering & Privacy

  • 100% Client-Side: Listens to window keydown events within the tool container.
  • Zero Dependencies: Standard browser Web APIs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomersnew toolA new tool addition to the toolkit

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions