Virtual Keycode Constants | Equivalent Key Value (in DOM3) |
---|---|
VK_UNDEFINED | 'Unidentified' |
VK_CANCEL | 'Cancel' |
VK_BACK_SPACE | 'Backspace' |
VK_TAB | 'Tab' |
VK_CLEAR | 'Clear' |
VK_ENTER | 'Enter' |
VK_SHIFT | 'Shift' |
VK_CONTROL | 'Control' |
VK_ALT | 'Alt' |
VK_PAUSE | 'Pause' |
VK_CAPS_LOCK | 'CapsLock' |
VK_KANA | 'KanaMode' |
VK_FINAL | 'FinalMode' |
VK_KANJI | 'KanjiMode' |
VK_ESCAPE | 'Esc' |
VK_CONVERT | 'Convert' |
VK_NONCONVERT | 'Nonconvert' |
VK_ACCEPT | 'Accept' |
VK_MODECHANGE | 'ModeChange' |
VK_SPACE | space character, fix |
VK_PAGE_UP | 'PageUp' |
VK_PAGE_DOWN | 'PageDown' |
VK_END | 'End' |
VK_HOME | 'Home' |
VK_LEFT | 'Left' |
VK_UP | 'Up' |
VK_RIGHT | 'Right' |
VK_DOWN | 'Down' |
VK_COMMA | ',' |
VK_PERIOD | '.' |
VK_SLASH | '/' |
VK_0 | '0' |
VK_1 | '1' |
VK_2 | '2' |
VK_3 | '3' |
VK_4 | '4' |
VK_5 | '5' |
VK_6 | '6' |
VK_7 | '7' |
VK_8 | '8' |
VK_9 | '9' |
VK_SEMICOLON | ';' |
VK_EQUALS | 'Equals' |
VK_A | 'A' |
VK_B | 'B' |
VK_C | 'C' |
VK_D | 'D' |
VK_E | 'E' |
VK_F | 'F' |
VK_G | 'G' |
VK_H | 'H' |
VK_I | 'I' |
VK_J | 'J' |
VK_K | 'K' |
VK_L | 'L' |
VK_M | 'M' |
VK_N | 'N' |
VK_O | 'O' |
VK_P | 'P' |
VK_Q | 'Q' |
VK_R | 'R' |
VK_S | 'S' |
VK_T | 'T' |
VK_U | 'U' |
VK_V | 'V' |
VK_W | 'W' |
VK_X | 'X' |
VK_Y | 'Y' |
VK_Z | 'Z' |
VK_OPEN_BRACKET | '[' |
VK_BACK_SLASH | '\' |
VK_CLOSE_BRACKET | ']' |
VK_NUMPAD0 | See NOTE below |
VK_NUMPAD1 | See NOTE below |
VK_NUMPAD2 | See NOTE below |
VK_NUMPAD3 | See NOTE below |
VK_NUMPAD4 | See NOTE below |
VK_NUMPAD5 | See NOTE below |
VK_NUMPAD6 | See NOTE below |
VK_NUMPAD7 | See NOTE below |
VK_NUMPAD8 | See NOTE below |
VK_NUMPAD9 | See NOTE below |
VK_MULTIPLY | 'Multiply' |
VK_ADD | 'Add' |
VK_SEPARATOR | 'Separator' |
VK_SUBTRACT | 'Subtract' |
VK_DECIMAL | 'Decimal' |
VK_DIVIDE | 'Divide' |
VK_F1 | 'F1' |
VK_F2 | 'F2' |
VK_F3 | 'F3' |
VK_F4 | 'F4' |
VK_F5 | 'F5' |
VK_F6 | 'F6' |
VK_F7 | 'F7' |
VK_F8 | 'F8' |
VK_F9 | 'F9' |
VK_F10 | 'F10' |
VK_F11 | 'F11' |
VK_F12 | 'F12' |
VK_DELETE | 'Del' |
VK_NUM_LOCK | 'NumLock' |
VK_SCROLL_LOCK | 'Scroll' |
VK_PRINTSCREEN | 'PrintScreen' |
VK_INSERT | 'Insert' |
VK_HELP | 'Help' |
VK_META | 'Meta' |
VK_BACK_QUOTE | '`' |
VK_QUOTE | ''' |
VK_RED | 'Red' |
VK_GREEN | 'Green' |
VK_YELLOW | 'Yellow' |
VK_BLUE | 'Blue' |
VK_GREY | 'Grey' |
VK_BROWN | 'Brown' |
VK_POWER | 'Power' |
VK_DIMMER | 'Dimmer' |
VK_WINK | 'Wink' |
VK_REWIND | 'MediaRewind' |
VK_STOP | 'MediaStop' |
VK_EJECT_TOGGLE | 'Eject' |
VK_PLAY | 'MediaPlay' |
VK_RECORD | 'MediaRecord' |
VK_FAST_FWD | 'FastFwd' |
VK_PLAY_SPEED_UP | 'PlaySpeedUp' |
VK_PLAY_SPEED_DOWN | 'PlaySpeedDown' |
VK_PLAY_SPEED_RESET | 'PlaySpeedReset' |
VK_RECORD_SPEED_NEXT | 'RecordSpeedNext' |
VK_GO_TO_START | 'MediaTrackStart' |
VK_GO_TO_END | 'MediaTrackEnd' |
VK_TRACK_PREV | 'MediaPreviousTrack' |
VK_TRACK_NEXT | 'MediaNextTrack' |
VK_RANDOM_TOGGLE | 'RandomToggle' |
VK_CHANNEL_UP | 'ChannelUp' |
VK_CHANNEL_DOWN | 'ChannelDown' |
VK_STORE_FAVORITE_0 | 'StoreFavorite0' |
VK_STORE_FAVORITE_1 | 'StoreFavorite1' |
VK_STORE_FAVORITE_2 | 'StoreFavorite2' |
VK_STORE_FAVORITE_3 | 'StoreFavorite3' |
VK_RECALL_FAVORITE_0 | 'RecallFavorite0' |
VK_RECALL_FAVORITE_1 | 'RecallFavorite1' |
VK_RECALL_FAVORITE_2 | 'RecallFavorite2' |
VK_RECALL_FAVORITE_3 | 'RecallFavorite3' |
VK_CLEAR_FAVORITE_0 | 'ClearFavorite0' |
VK_CLEAR_FAVORITE_1 | 'ClearFavorite1' |
VK_CLEAR_FAVORITE_2 | 'ClearFavorite3' |
VK_CLEAR_FAVORITE_3 | 'ClearFavorite4' |
VK_SCAN_CHANNELS_TOGGLE | 'ScanChannelsToggle' |
VK_PINP_TOGGLE | 'PinPToggle' |
VK_SPLIT_SCREEN_TOGGLE | 'SplitScreenToggle' |
VK_DISPLAY_SWAP | 'DisplaySwap' |
VK_SCREEN_MODE_NEXT | 'ScreenModeNext' |
VK_VIDEO_MODE_NEXT | 'VideoModeNext' |
VK_VOLUME_UP | 'VolumeUp' |
VK_VOLUME_DOWN | 'VolumeDown' |
VK_MUTE | 'VolumeMute' |
VK_SURROUND_MODE_NEXT | 'AudioSurroundModeNext' |
VK_BALANCE_RIGHT | 'AudioBalanceRight' |
VK_BALANCE_LEFT | 'AudioBalanceLeft' |
VK_FADER_FRONT | 'AudioFaderFront' |
VK_FADER_REAR | 'AudioFaderRear' |
VK_BASS_BOOST_UP | 'AudioBassBoostUp' |
VK_BASS_BOOST_DOWN | 'AudioBassBoostDown' |
VK_INFO | 'Info' |
VK_GUIDE | 'Guide' |
VK_TELETEXT | 'Teletext' |
VK_SUBTITLE | 'Subtitle' |
VK_BACK | ?? |
VK_MENU | 'Menu' |
VK_PLAY_PAUSE | 'MediaPlayPause' |
NOTE: Numpad values are not distinguished from other numerical key values in this set; a content author could use the KeyboardEvent.location attribute to discover if a key originated from the numeric keypad.