https://github.com/frankiefab100/key-code-generator
A minimalistic interface that generates Keyboard event value when entered by a user.
https://github.com/frankiefab100/key-code-generator
html-css-javascript keyboard-events keycode keydown keyup
Last synced: 3 months ago
JSON representation
A minimalistic interface that generates Keyboard event value when entered by a user.
- Host: GitHub
- URL: https://github.com/frankiefab100/key-code-generator
- Owner: frankiefab100
- Created: 2021-10-31T22:06:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-15T23:49:42.000Z (about 3 years ago)
- Last Synced: 2024-12-28T18:55:26.787Z (5 months ago)
- Topics: html-css-javascript, keyboard-events, keycode, keydown, keyup
- Language: CSS
- Homepage: https://frankiefab100.github.io/Key-Code-Generator/
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KeyCode Generator
A simple program that display KEYCODES of various individual keyboard keys when the user interacts with them.
N/B: KeyCode is a deprecated property/method of `KeyboardEvent` interface.
## Project Description
The `keydown` event type is triggered once a key is entered, displaying the `event.which` values as listed below.
## KeyCode & Event Code
| Key | Event Code |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------ |
| BACKSPACE | 8 |
| TAB | 9 |
| ENTER | 13 |
| SHIFT | 16 |
| CTRL | 17 |
| ALT | 18 |
| PAUSE/BREAK | 19 |
| CAPSLOCK | 20 |
| ESC | 27 |
| SPACE | 32 |
| PAGEUP | 33 |
| PAGEDOWN | 34 |
| END | 35 |
| HOME | 36 |
| LEFT ARROW | 37 |
| UP ARROW | 38 |
| RIGHT ARROW | 39 |
| DOWN ARROW | 40 |
| PRINT SCREEN | 44 |
| INSERT | 45 |
| DELETE | 46 |
| 0 | 48 |
| 1 | 49 |
| 2 | 50 |
| 3 | 51 |
| 4 | 52 |
| 5 | 53 |
| 6 | 54 |
| 7 | 55 |
| 8 | 56 |
| 9 | 57 |
| ; | 59 |
| = | 61 |
| A | 65 |
| B | 66 |
| C | 67 |
| D | 68 |
| E | 69 |
| F | 70 |
| G | 71 |
| H | 72 |
| I | 73 |
| J | 74 |
| K | 75 |
| L | 76 |
| M | 77 |
| N | 78 |
| O | 79 |
| P | 80 |
| Q | 81 |
| R | 82 |
| S | 83 |
| T | 84 |
| U | 85 |
| V | 86 |
| W | 87 |
| X | 88 |
| Y | 89 |
| Z | 90 |
| OPERATING SYSTEM | 91 |
| * | 106 |
| + | 107 |
| - | 109 |
| / | 111 |
| F1 | 112 |
| F2 | 113 |
| F3 | 114 |
| F4 | 115 |
| F5 | 116 |
| F6 | 117 |
| F7 | 118 |
| F8 | 119 |
| F9 | 120 |
| F10 | 121 |
| F11 | 122 |
| F12 | 123 |
| , | 188 |
| . | 190 |
| / | 191 |
| ` | 192 |
| [ | 219 |
| \ | 220 |
| ] | 221 |
| ' | 222 |
## Reference
[Freecodecamp.org - Javascript Keycode List by Tapas Adhikary](https://www.freecodecamp.org/news/javascript-keycode-list-keypress-event-key-codes/)