JavaScript Key Code 224
224
Key Code Information
event.key
Meta
The value of the key pressed. Accounts for modifiers keys that return CAPS and alternate chars.
event.location
Left-side modifier keys
Some keys exist more than once on your keyboard. This provides the location of the key pressed. Try it with both shifts.
event.code
OSLeft
The physical key on the keyboard. Doesn't care if you are holding a modifier like Shift.
event.which
224
Description
left or right ⌘ key (firefox)
This is the description we have created. Think it can be improved? PR us on GitHub
Event Dump
{ "key": "Meta", "keyCode": 224, "which": 224, "code": "OSLeft", "metaKey": true, "location": 1, "description": "left or right ⌘ key (firefox)", "unicode": "⌘", "path": "/os-left" }
Unicode
⌘