Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Dominique B edited this page Feb 2, 2016 · 2 revisions

Virtual Key codes (Windows)

You can use these VK constants in KeyboardHandler.OnKeyEvent() to check the 3rd parameter |code|.

More description of keys on MSDN: Virtual-Key Codes (Windows)

cefpython.VK_0
cefpython.VK_1
cefpython.VK_2
cefpython.VK_3
cefpython.VK_4
cefpython.VK_5
cefpython.VK_6
cefpython.VK_7
cefpython.VK_8
cefpython.VK_9

cefpython.VK_A
cefpython.VK_B
cefpython.VK_C
cefpython.VK_D
cefpython.VK_E
cefpython.VK_F
cefpython.VK_G
cefpython.VK_H
cefpython.VK_I
cefpython.VK_J
cefpython.VK_K
cefpython.VK_L
cefpython.VK_M
cefpython.VK_N
cefpython.VK_O
cefpython.VK_P
cefpython.VK_Q
cefpython.VK_R
cefpython.VK_S
cefpython.VK_T
cefpython.VK_U
cefpython.VK_V
cefpython.VK_W
cefpython.VK_X
cefpython.VK_Y
cefpython.VK_Z

cefpython.VK_F1
cefpython.VK_F2
cefpython.VK_F3
cefpython.VK_F4
cefpython.VK_F5
cefpython.VK_F6
cefpython.VK_F7
cefpython.VK_F8
cefpython.VK_F9
cefpython.VK_F10
cefpython.VK_F11
cefpython.VK_F12
cefpython.VK_F13
cefpython.VK_F14
cefpython.VK_F15
cefpython.VK_F16
cefpython.VK_F17
cefpython.VK_F18
cefpython.VK_F19
cefpython.VK_F20
cefpython.VK_F21
cefpython.VK_F22
cefpython.VK_F23
cefpython.VK_F24

cefpython.VK_LEFT # Left arrow key
cefpython.VK_UP # Up arrow key
cefpython.VK_RIGHT # Right arrow key
cefpython.VK_DOWN # Down arrow key

cefpython.VK_LSHIFT # Left shift
cefpython.VK_RSHIFT # Right shift
cefpython.VK_LCONTROL # Left Ctrl
cefpython.VK_RCONTROL # Right Ctrl
cefpython.VK_LMENU # Left Alt
cefpython.VK_RMENU # Right Alt
cefpython.VK_LALT
cefpython.VK_RALT

cefpython.VK_BACK # Backspace key
cefpython.VK_RETURN # Enter key
cefpython.VK_TAB
cefpython.VK_SPACE # Space bar key
cefpython.VK_ESCAPE

cefpython.VK_SHIFT # Shift key
cefpython.VK_CONTROL # Ctrl key
cefpython.VK_MENU # Alt key
cefpython.VK_LWIN # Left Windows key
cefpython.VK_RWIN # Right Windows key
cefpython.VK_CAPITAL # Caps Lock key
cefpython.VK_CAPSLOCK

cefpython.VK_PRIOR # Page up
cefpython.VK_NEXT # Page down
cefpython.VK_PAGEUP
cefpython.VK_PAGEDOWN
cefpython.VK_END
cefpython.VK_HOME
cefpython.VK_INSERT
cefpython.VK_DELETE

cefpython.VK_NUMLOCK
cefpython.VK_SCROLL # Scroll Lock key

cefpython.VK_SELECT
cefpython.VK_PRINT
cefpython.VK_EXECUTE
cefpython.VK_SNAPSHOT # Print Screen key
cefpython.VK_PRINTSCREEN
cefpython.VK_HELP
cefpython.VK_PAUSE
cefpython.VK_CLEAR
cefpython.VK_APPS # Applications key (Natural keyboard)
cefpython.VK_SLEEP # Computer Sleep key

cefpython.VK_NUMPAD0 # Numeric keypad 0 key
cefpython.VK_NUMPAD1 # Numeric keypad 1 key
cefpython.VK_NUMPAD2 # Numeric keypad 2 key
cefpython.VK_NUMPAD3 # Numeric keypad 3 key
cefpython.VK_NUMPAD4 # Numeric keypad 4 key
cefpython.VK_NUMPAD5 # Numeric keypad 5 key
cefpython.VK_NUMPAD6 # Numeric keypad 6 key
cefpython.VK_NUMPAD7 # Numeric keypad 7 key
cefpython.VK_NUMPAD8 # Numeric keypad 8 key
cefpython.VK_NUMPAD9 # Numeric keypad 9 key

cefpython.VK_BROWSER_BACK
cefpython.VK_BROWSER_FORWARD
cefpython.VK_BROWSER_REFRESH
cefpython.VK_BROWSER_STOP
cefpython.VK_BROWSER_SEARCH
cefpython.VK_BROWSER_FAVORITES
cefpython.VK_BROWSER_HOME

cefpython.VK_PLAY
cefpython.VK_ZOOM

cefpython.VK_VOLUME_MUTE
cefpython.VK_VOLUME_DOWN
cefpython.VK_VOLUME_UP
cefpython.VK_MEDIA_NEXT_TRACK
cefpython.VK_MEDIA_PREV_TRACK
cefpython.VK_MEDIA_STOP
cefpython.VK_MEDIA_PLAY_PAUSE
cefpython.VK_LAUNCH_MAIL
cefpython.VK_LAUNCH_MEDIA_SELECT
cefpython.VK_LAUNCH_APP1 # Start Application 1 key
cefpython.VK_LAUNCH_APP2 # Start Application 2 key

cefpython.VK_MULTIPLY
cefpython.VK_ADD
cefpython.VK_SEPARATOR
cefpython.VK_SUBTRACT
cefpython.VK_DECIMAL
cefpython.VK_DIVIDE

cefpython.VK_LBUTTON # Left mouse button
cefpython.VK_RBUTTON # Right mouse button
cefpython.VK_CANCEL # Control-break processing
cefpython.VK_MBUTTON # Middle mouse button (three-button mouse)

cefpython.VK_XBUTTON1 # X1 mouse button
cefpython.VK_XBUTTON2 # X2 mouse button

cefpython.VK_KANA # IME Kana mode
cefpython.VK_HANGUL # IME Hangul mode
cefpython.VK_JUNJA # IME Junja mode
cefpython.VK_FINAL # IME final mode
cefpython.VK_HANJA # IME Hanja mode
cefpython.VK_KANJI # IME Kanji mode
cefpython.VK_CONVERT # IME convert
cefpython.VK_NONCONVERT # IME nonconvert
cefpython.VK_ACCEPT # IME accept
cefpython.VK_MODECHANGE # IME mode change request

cefpython.VK_PROCESSKEY
cefpython.VK_PACKET
cefpython.VK_ICO_HELP
cefpython.VK_ICO_00
cefpython.VK_ICO_CLEAR

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.