Virtual Keys
Virtual keys provide a symbolic representation of keyboard keys pressed by the user. Virtual keys are used in methods like FMX.Forms.TCommonCustomForm.KeyDown.
Virtual key constants define scan codes of keys on PC keyboards. Mac keyboards have different scan codes for some keys. FireMonkey converts Mac scan codes to be equal to the virtual key constants defined in this table.
Virtual Key Code | Keyboard Key |
---|---|
vkLButton |
Left mouse button |
vkRButton |
Right mouse button |
vkCancel |
CONTROL+BREAK processing |
vkMButton |
Middle mouse button (three-button mouse) |
vkXButton1 |
Left lateral mouse button |
vkXButton2 |
Right lateral mouse button |
vkBack |
BACKSPACE key |
vkTab |
TAB key |
vkLineFeed |
New line |
vkClear |
CLEAR key |
vkReturn |
ENTER key. On Mac keyboard the numeric keypad's ENTER key has different scan code, but FireMonkey converts it to this vkReturn constant value. |
vkShift |
SHIFT key |
vkControl |
CTRL key |
vkMenu |
ALT key |
vkPause |
PAUSE key |
vkCapital |
CAPS LOCK key |
vkKana |
Input Method Editor (IME) Kana mode |
vkHagul |
IME Hangul mode |
vkJunja |
IME Junja mode |
vkFinal |
IME Final mode |
vkHanja |
IME Hanja mode |
vkHardwareBack |
On Android devices. BACK key--a button that will take the user back to the previous state. |
vkKanji |
IME Kanji mode |
vkConvert |
IME convert |
vkNonConvert |
IME nonconvert |
vkAccept |
IME accept |
vkModeChange |
Used with IME |
vkEscape |
ESC key |
vkSpace |
SPACEBAR key |
vkPrior |
PAGE UP key |
vkNext |
PAGE DOWN key |
vkEnd |
END key |
vkHome |
HOME key |
vkLeft |
LEFT ARROW key |
vkUp |
UP ARROW key |
vkRight |
RIGHT ARROW key |
vkDown |
DOWN ARROW key |
vkSelect |
SELECT key |
vkPrint |
PRINT key (keyboard-specific) |
vkExecute |
EXECUTE key |
vkSnapshot |
PRINT SCREEN key |
vkInsert |
INSERT key |
vkDelete |
DELETE key |
vkHelp |
HELP key |
vk0 |
|
vk1 |
|
vk2 |
|
vk3 |
|
vk4 |
|
vk5 |
|
vk6 |
|
vk7 |
|
vk8 |
|
vk9 |
|
vkA |
|
vkB |
|
vkC |
|
vkD |
|
vkE |
|
vkF |
|
vkG |
|
vkH |
|
vkI |
|
vkJ |
|
vkK |
|
vkL |
|
vkM |
|
vkN |
|
vkO |
|
vkP |
|
vkR |
|
vkS |
|
vkT |
|
vkU |
|
vkV |
|
vkW |
|
vkX |
|
vkY |
|
vkZ |
|
vkLWin |
Left Windows key (Microsoft keyboard) |
vkRWin |
Right Windows key (Microsoft keyboard) |
vkApps |
Applications key (Microsoft keyboard) |
vkSleep |
Computer Sleep key |
vkNumpad0 |
|
vkNumpad1 |
|
vkNumpad2 |
|
vkNumpad3 |
|
vkNumpad4 |
|
vkNumpad5 |
|
vkNumpad6 |
|
vkNumpad7 |
|
vkNumpad8 |
|
vkNumpad9 |
|
vkMultiply |
Multiply key (numeric keypad) |
vkAdd |
Add key (numeric keypad) |
vkSeparator |
Separator key (numeric keypad) |
vkSubtract |
Subtract key (numeric keypad) |
vkDecimal |
Decimal key (numeric keypad) |
vkDivide |
Divide key (numeric keypad) |
vkF1 |
F1 key |
vkF2 |
F2 key |
vkF3 |
F3 key |
vkF4 |
F4 key |
vkF5 |
F5 key |
vkF6 |
F6 key |
vkF7 |
F7 key |
vkF8 |
F8 key |
vkF9 |
F9 key |
vkF10 |
F10 key |
vkF11 |
F11 key |
vkF12 |
F12 key |
vkF13 |
F13 key |
vkF14 |
F14 key |
vkF15 |
F15 key |
vkF16 |
F16 key |
vkF17 |
F17 key |
vkF18 |
F18 key |
vkF19 |
F19 key |
vkF20 |
F20 key |
vkF21 |
F21 key |
vkF22 |
F22 key |
vkF23 |
F23 key |
vkF24 |
F24 key |
vkNumLock |
Num Lock key |
vkScroll |
Scroll Lock key |
vkLShift |
Left Shift key |
vkRShift |
Right Shift key |
vkLControl |
Left CONTROL key |
vkRControl |
Right CONTROL key |
vkLMenu |
Left ALT key |
vkRMenu |
Right Alt key |
vkBrowserBack |
Browser Back key |
vkBrowserForward |
Browser Forward key. On Mac keyboards this is the |
vkBrowserRefresh |
Browser Refresh key |
vkBrowserStop |
Browser Stop key |
vkBrowserSearch |
Browser Search key |
vkBrowserFavorites |
Browser Favorites key |
vkBrowserHome |
Browser Start and Home key |
vkVolumeMute |
Volume Mute key |
vkVolumeDown |
Volume Down key |
vkVolumeUp |
Volume Up key |
vkMediaNextTrack |
Next Track key |
vkMediaPrevTrack |
Previous Track key |
vkMediaStop |
Stop Media key |
vkMediaPlayPause |
Play/Pause Media key |
vkLaunchMail |
Start Mail key |
vkLaunchMediaSelect |
Select Media key |
vkLaunchApp1 |
Start Application1 key |
vkLaunchApp2 |
Start Application2 key |
vkSemicolon |
Semicolon key ( |
vkEqual |
Equal key |
vkComma |
Comma key ( |
vkMinus |
Minus key ( |
vlPeriod |
Period key ( |
vkSlash |
Slash key ( |
vkTilde |
Tilde key ( |
vkLeftBracket |
Left bracket key ( |
vkBackSlash |
Back slash key ( |
vkRightBracket |
Right bracket key ( |
vkQuote |
Quote key ( |
vkProcessKey |
IME PROCESS key |
vkPacket |
Used to pass Unicode characters as if they were keystrokes. The vkPacket key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. (Windows 2000/XP) |
vkAttn |
Attn key |
vkCrsel |
CrSel key |
vkExsel |
ExSel key |
vkErEof |
Erase EOF key |
vkPlay |
Play key |
vkZoom |
Zoom key |
vkNoname |
Reserved for future use |
vkPA1 |
PA1 key |
vkOemClear |
Clear key |
'FireMonkey' 카테고리의 다른 글
C++개발시 vkHardwareBack, Menu 버튼 처리 방식 (0) | 2014.07.04 |
---|