KeyCode Enumeration

Summary

Virtual representation of key codes. This should help with cross browser/platform compatibility.

Syntax

TypeScript
JavaScript
lt.Document.Editor.KeyCode { 
   unknown: 0, 
   backspace: 1, 
   tab: 2, 
   enter: 3, 
   shift: 4, 
   ctrl: 5, 
   alt: 6, 
   pause: 7, 
   capsLock: 8, 
   escape: 9, 
   space: 10, 
   pageUp: 11, 
   pageDown: 12, 
   end: 13, 
   home: 14, 
   leftArrow: 15, 
   upArrow: 16, 
   rightArrow: 17, 
   downArrow: 18, 
   insert: 19, 
   delete: 20, 
   meta: 21, 
   contextMenu: 22, 
   numLock: 23, 
   scrollLock: 24, 
   key_A: 25, 
   key_B: 26, 
   key_C: 27, 
   key_D: 28, 
   key_E: 29, 
   key_F: 30, 
   key_G: 31, 
   key_H: 32, 
   key_I: 33, 
   key_J: 34, 
   key_K: 35, 
   key_L: 36, 
   key_M: 37, 
   key_N: 38, 
   key_O: 39, 
   key_P: 40, 
   key_Q: 41, 
   key_R: 42, 
   key_S: 43, 
   key_T: 44, 
   key_U: 45, 
   key_V: 46, 
   key_W: 47, 
   key_X: 48, 
   key_Y: 49, 
   key_Z: 50, 
   key_1: 51, 
   key_2: 52, 
   key_3: 53, 
   key_4: 54, 
   key_5: 55, 
   key_6: 56, 
   key_7: 57, 
   key_8: 58, 
   key_9: 59, 
   key_0: 60, 
   semicolon: 61, 
   equal: 62, 
   comma: 63, 
   minus: 64, 
   dot: 65, 
   slash: 66, 
   backtick: 67, 
   open_bracket: 68, 
   closed_bracket: 69, 
   backslash: 70, 
   quote: 71, 
   f1: 72, 
   f2: 73, 
   f3: 74, 
   f4: 75, 
   f5: 76, 
   f6: 77, 
   f7: 78, 
   f8: 79, 
   f9: 80, 
   f10: 81, 
   f11: 82, 
   f12: 83, 
   numpad_0: 84, 
   numpad_1: 85, 
   numpad_2: 86, 
   numpad_3: 87, 
   numpad_4: 88, 
   numpad_5: 89, 
   numpad_6: 90, 
   numpad_7: 91, 
   numpad_8: 92, 
   numpad_9: 93, 
   numpad_multiply: 94, 
   numpad_add: 95, 
   numpad_separator: 96, 
   numpad_subtract: 97, 
   numpad_decimal: 98, 
   numpad_divide: 99, 
   INPUT_PROCESSING: 229, 
   MAX_VALUE: 230 
} 
lt.Document.Editor.KeyCode { 
   unknown: 0, 
   backspace: 1, 
   tab: 2, 
   enter: 3, 
   shift: 4, 
   ctrl: 5, 
   alt: 6, 
   pause: 7, 
   capsLock: 8, 
   escape: 9, 
   space: 10, 
   pageUp: 11, 
   pageDown: 12, 
   end: 13, 
   home: 14, 
   leftArrow: 15, 
   upArrow: 16, 
   rightArrow: 17, 
   downArrow: 18, 
   insert: 19, 
   delete: 20, 
   meta: 21, 
   contextMenu: 22, 
   numLock: 23, 
   scrollLock: 24, 
   key_A: 25, 
   key_B: 26, 
   key_C: 27, 
   key_D: 28, 
   key_E: 29, 
   key_F: 30, 
   key_G: 31, 
   key_H: 32, 
   key_I: 33, 
   key_J: 34, 
   key_K: 35, 
   key_L: 36, 
   key_M: 37, 
   key_N: 38, 
   key_O: 39, 
   key_P: 40, 
   key_Q: 41, 
   key_R: 42, 
   key_S: 43, 
   key_T: 44, 
   key_U: 45, 
   key_V: 46, 
   key_W: 47, 
   key_X: 48, 
   key_Y: 49, 
   key_Z: 50, 
   key_1: 51, 
   key_2: 52, 
   key_3: 53, 
   key_4: 54, 
   key_5: 55, 
   key_6: 56, 
   key_7: 57, 
   key_8: 58, 
   key_9: 59, 
   key_0: 60, 
   semicolon: 61, 
   equal: 62, 
   comma: 63, 
   minus: 64, 
   dot: 65, 
   slash: 66, 
   backtick: 67, 
   open_bracket: 68, 
   closed_bracket: 69, 
   backslash: 70, 
   quote: 71, 
   f1: 72, 
   f2: 73, 
   f3: 74, 
   f4: 75, 
   f5: 76, 
   f6: 77, 
   f7: 78, 
   f8: 79, 
   f9: 80, 
   f10: 81, 
   f11: 82, 
   f12: 83, 
   numpad_0: 84, 
   numpad_1: 85, 
   numpad_2: 86, 
   numpad_3: 87, 
   numpad_4: 88, 
   numpad_5: 89, 
   numpad_6: 90, 
   numpad_7: 91, 
   numpad_8: 92, 
   numpad_9: 93, 
   numpad_multiply: 94, 
   numpad_add: 95, 
   numpad_separator: 96, 
   numpad_subtract: 97, 
   numpad_decimal: 98, 
   numpad_divide: 99, 
   INPUT_PROCESSING: 229, 
   MAX_VALUE: 230 
} 

Members

Value Member Description
0 unknown Toggles whether the on-screen keyboard will light up the keys when clicked on.
1 backspace Deletes the character before the cursor or the selected text.
2 tab Moves the cursor several spaces forward or moves to the next text box in a form.
3 enter Moves the cursor to the start of the next line or selects the highlighted button when in a dialog box.
4 shift Press in combination with a letter to type an uppercase letter or use in combination with a key to type the top symbol on that key.
5 ctrl Press in combination with another key to use a function, often as shortcuts to actions known as keybinds.
6 alt Press in combination with another key to use a function, often as shortcuts to actions known as keybinds.
7 pause Pauses a running program or used in combination with ctrl to stop it all together.
8 capsLock Press once to type all letters in uppercase and press again to turn this off.
9 escape Cancels the current task and or closes out of the dialog box.
10 space Moves the cursor one space forward.
11 pageUp Moves the cursor or page up one screen.
12 pageDown Moves the cursor or page down one screen.
13 end Moves the cursor to the end of the line.
14 home Moves the cursor to the start of the line.
15 leftArrow Moves the cursor or selection one space or line to the left.
16 upArrow Moves the cursor or selection one space or line up.
17 rightArrow Moves the cursor or selection one space or line to the right.
18 downArrow Moves the cursor or selection one space or line down.
19 insert Toggles whether insert mode is on or off. When on, text typed is inserted at the cursor. When off, text typed replaces existing characters.
20 delete Deletes the character after the cursor or the selected text.
21 meta Press in combination with another key to use a specific function tailored to the specific keyboard or operating system.
22 contextMenu Opens the context menu for the specific program. If keyboard does not have this key you can press Shift+f10 for the same effect.
23 numLock Toggles whether the numpad keys on the right of the keyboard can be used to input numbers or not.
24 scrollLock Depending on the program, changes the behavior of the arrow keys by allowing scrolling through the document without moving the cursor position.
25 key_A The a key on a US keyboard.
26 key_B The b key on a US keyboard.
27 key_C The c key on a US keyboard.
28 key_D The d key on a US keyboard.
29 key_E The e key on a US keyboard.
30 key_F The f key on a US keyboard.
31 key_G The g key on a US keyboard.
32 key_H The h key on a US keyboard.
33 key_I The i key on a US keyboard.
34 key_J The j key on a US keyboard.
35 key_K The k key on a US keyboard.
36 key_L The l key on a US keyboard.
37 key_M The m key on a US keyboard.
38 key_N The n key on a US keyboard.
39 key_O The o key on a US keyboard.
40 key_P The p key on a US keyboard.
41 key_Q The q key on a US keyboard.
42 key_R The r key on a US keyboard.
43 key_S The s key on a US keyboard.
44 key_T The t key on a US keyboard.
45 key_U The u key on a US keyboard.
46 key_V The v key on a US keyboard.
47 key_W The w key on a US keyboard.
48 key_X The x key on a US keyboard.
49 key_Y The y key on a US keyboard.
50 key_Z The z key on a US keyboard.
51 key_1 The 1 key on a US keyboard.
52 key_2 The 2 key on a US keyboard.
53 key_3 The 3 key on a US keyboard.
54 key_4 The 4 key on a US keyboard.
55 key_5 The 5 key on a US keyboard.
56 key_6 The 6 key on a US keyboard.
57 key_7 The 7 key on a US keyboard.
58 key_8 The 8 key on a US keyboard.
59 key_9 The 9 key on a US keyboard.
60 key_0 The 0 key on a US keyboard.
61 semicolon US keyboard: ;:. Other Countries: Varies by keyboard type.
62 equal US keyboard: =+. Other Countries: + key.
63 comma US keyboard: ,<. Other Countries: \, key.
64 minus US keyboard: -. Other Countries: '-' key.
65 dot US keyboard: .>. Other Countries: '.' key.
66 slash US keyboard: /?. Other Countries: Varies by keyboard type.
67 backtick US keyboard: `~. Other Countries: Varies by keyboard type.
68 open_bracket US keyboard: [{. Other Countries: Varies by keyboard type.
69 closed_bracket US keyboard: ]}. Other Countries: Varies by keyboard type.
70 backslash US keyboard: ** **. Other Countries: Varies by keyboard type.
71 quote US keyboard: '". Other Countries: Varies by keyboard type.
72 f1 The f1 key on a US keyboard.
73 f2 The f2 key on a US keyboard.
74 f3 The f3 key on a US keyboard.
75 f4 The f4 key on a US keyboard.
76 f5 The f5 key on a US keyboard.
77 f6 The f6 key on a US keyboard.
78 f7 The f7 key on a US keyboard.
79 f8 The f8 key on a US keyboard.
80 f9 The f9 key on a US keyboard.
81 f10 The f10 key on a US keyboard.
82 f11 The f11 key on a US keyboard.
83 f12 The f12 key on a US keyboard.
84 numpad_0 The 0 key in the numbpad area on a US keyboard.
85 numpad_1 The 1 key in the numbpad area on a US keyboard.
86 numpad_2 The 2 key in the numbpad area on a US keyboard.
87 numpad_3 The 3 key in the numbpad area on a US keyboard.
88 numpad_4 The 4 key in the numbpad area on a US keyboard.
89 numpad_5 The 5 key in the numbpad area on a US keyboard.
90 numpad_6 The 6 key in the numbpad area on a US keyboard.
91 numpad_7 The 7 key in the numbpad area on a US keyboard.
92 numpad_8 The 8 key in the numbpad area on a US keyboard.
93 numpad_9 The 9 key in the numbpad area on a US keyboard.
94 numpad_multiply The ***** key in the numbpad area on a US keyboard.
95 numpad_add The + key in the numbpad area on a US keyboard.
96 numpad_separator The . key in the numbpad area on a US keyboard. Localization of the keyboard could have this key as a different value, an example would be from '.' to ','.
97 numpad_subtract The - key in the numbpad area on a US keyboard.
98 numpad_decimal The . key in the numbpad area on a US keyboard.
99 numpad_divide The */* key in the numbpad area on a US keyboard.
229 INPUT_PROCESSING Placeholder for input processing.
230 MAX_VALUE Placeholder for the max value.

Requirements

Target Platforms

See Also

Leadtools.Document.Editor Namespace

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Editor Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.