Key codes

This is an overview of all available keycodes you can use inside layout.js

Characters

Code Symbol with Shift pressed
A a A
B b B
C c C
D d D
E e E
F f F
G g G
H h H
I i I
J j J
K k K
L l L
M m M
N n N
O o O
P p P
Q q Q
R r R
S s S
T t T
U u U
V v V
W w W
X x X
Y y Y
Z z Z

Numbers

Code Symbol with Shift pressed
ONE 1 !
TWO 2 @
THREE 3 #
FOUR 4 $
FIVE 5 %
SIX 6 ^
SEVEN 7 &
EIGHT 8 *
NINE 9 (
ZERO 0 )

Special Characters

Code Symbol with Shift pressed
MINUS - _
EQUALS = +
LEFT_BRACKET [ {
RIGHT_BRACKET ] }
BACKSLASH \
POUND # ~ (Non-US keyboard)
SEMICOLON ; :
QUOTE ' "
GRAVE_ACCENT ` ~
COMMA , <
PERIOD . >
FORWARD_SLASH / ?
CAPS_LOCK Caps Lock

Keypad

Code Symbol with Shift pressed
KEYPAD_NUMLOCK Num Lock (Clear on Mac)
KEYPAD_FORWARD_SLASH Keypad /
KEYPAD_ASTERISK Keypad *
KEYPAD_MINUS Keyapd -
KEYPAD_PLUS Keypad +
KEYPAD_ENTER Keypad Enter
KEYPAD_ONE Keypad 1 End
KEYPAD_TWO Keypad 2 Down Arrow
KEYPAD_THREE Keypad 3 PgDn
KEYPAD_FOUR Keypad 4 Left Arrow
KEYPAD_FIVE Keypad 5
KEYPAD_SIX Keypad 6 Right Arrow
KEYPAD_SEVEN Keypad 7 Home
KEYPAD_EIGHT Keypad 8 Up Arrow
KEYPAD_NINE Keypad 9 PgUp
KEYPAD_ZERO Keypad 0 Ins
KEYPAD_PERIOD Keypad . Del
KEYPAD_BACKSLASH Keypad \ | (Non-US)
KEYPAD_EQUALS Keypad = (Mac)

Whitspaces

Code Symbol
ENTER Enter (Return)
RETURN Alias for ENTER
ESCAPE Escape
TAB Tab and Backtab
SPACEBAR Spacebar
SPACE Alias for SPACEBAR

Insert and Delete

Code Function
INSERT Insert
DELETE Delete forward
BACKSPACE Delete backward (Backspace)

Function

Code Function
F1 Function key F1
F2 Function key F2
F3 Function key F3
F4 Function key F4
F5 Function key F5
F6 Function key F6
F7 Function key F7
F8 Function key F8
F9 Function key F9
F10 Function key F10
F11 Function key F11
F12 Function key F12
F13 Function key F13 (Mac)
F14 Function key F14 (Mac)
F15 Function key F15 (Mac)
F16 Function key F16 (Mac)
F17 Function key F17 (Mac)
F18 Function key F18 (Mac)
F19 Function key F19 (Mac)

Navigation

Code Function
HOME Home (often moves to beginning of line)
PAGE_UP Go back one page
END End (often moves to end of line)
PAGE_DOWN Go forward one page
RIGHT_ARROW Move the cursor right
LEFT_ARROW Move the cursor left
DOWN_ARROW Move the cursor down
UP_ARROW Move the cursor up

Modifiers

Code Function
LEFT_CONTROL Control modifier left of the spacebar
CONTROL Alias for LEFT_CONTROL
LEFT_SHIFT Shift modifier left of the spacebar
SHIFT Alias for LEFT_SHIFT
LEFT_ALT Alt modifier left of the spacebar
ALT Alias for LEFT_ALT; Alt is also known as Option (Mac)
OPTION Labeled as Option on some Mac keyboards
LEFT_GUI GUI modifier left of the spacebar
GUI Alias for LEFT_GUI; GUI is also known as the Windows key, Command (Mac), or Meta
WINDOWS Labeled with a Windows logo on Windows keyboards
COMMAND Labeled as Command on Mac keyboards, with a clover glyph
RIGHT_CONTROL Control modifier right of the spacebar
RIGHT_SHIFT Shift modifier right of the spacebar
RIGHT_ALT Alt modifier right of the spacebar
RIGHT_GUI GUI modifier right of the spacebar

Others

Code Function
PRINT_SCREEN Print Screen (SysRq)
SCROLL_LOCK Scroll Lock
PAUSE Pause (Break)
APPLICATION Application: also known as the Menu key (Windows)
POWER Power (Mac)

© by Andreas Känner, 2023 - 2024. All Rights Reserved. Built with Typemill.