SkillAgentSearch skills...

KeyDecode

Let's pretend keycodes never happened.

Install / Use

/learn @incompl/KeyDecode
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Lets you handle keyboard events without worrying about key codes.

Uses http://unixpapa.com/js/key.html as a starting point.

In progress.

Example:

function keydownEventHandler(e) { var key = keyDecode(e); if (key === 'f') { // Lowercase... } else if (key === 'F') { // ...and uppercase. Normally you'd have to check the shift key. } else if (key === ';') { // The keycode can vary depending on your browser, but don't sweat it. } }

View on GitHub
GitHub Stars24
CategoryDevelopment
Updated9mo ago
Forks7

Languages

JavaScript

Security Score

67/100

Audited on Jun 21, 2025

No findings