Shortcut.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. // Permission is hereby granted, free of charge, to any person obtaining
  2. // a copy of this software and associated documentation files (the
  3. // "Software"), to deal in the Software without restriction, including
  4. // without limitation the rights to use, copy, modify, merge, publish,
  5. // distribute, sublicense, and/or sell copies of the Software, and to
  6. // permit persons to whom the Software is furnished to do so, subject to
  7. // the following conditions:
  8. //
  9. // The above copyright notice and this permission notice shall be
  10. // included in all copies or substantial portions of the Software.
  11. //
  12. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  13. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  14. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  15. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  16. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  17. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  18. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  19. //
  20. // Copyright (c) 2004 Novell, Inc.
  21. //
  22. // Authors:
  23. // Jordi Mas i Hernandez, [email protected]
  24. //
  25. //
  26. using System.Runtime.InteropServices;
  27. namespace System.Windows.Forms
  28. {
  29. [ComVisible (true)]
  30. public enum Shortcut
  31. {
  32. Alt0 = 0x040030,
  33. Alt1 = 0x040031,
  34. Alt2 = 0x040032,
  35. Alt3 = 0x040033,
  36. Alt4 = 0x040034,
  37. Alt5 = 0x040035,
  38. Alt6 = 0x040036,
  39. Alt7 = 0x040037,
  40. Alt8 = 0x040038,
  41. Alt9 = 0x040039,
  42. AltBksp = 0x040008,
  43. AltF1 = 0x040070,
  44. AltF10 = 0x040079,
  45. AltF11 = 0x04007A,
  46. AltF12 = 0x04007B,
  47. AltF2 = 0x040071,
  48. AltF3 = 0x040072,
  49. AltF4 = 0x040073,
  50. AltF5 = 0x040074,
  51. AltF6 = 0x040075,
  52. AltF7 = 0x040076,
  53. AltF8 = 0x040077,
  54. AltF9 = 0x040078,
  55. Ctrl0 = 0x020030,
  56. Ctrl1 = 0x020031,
  57. Ctrl2 = 0x020032,
  58. Ctrl3 = 0x020033,
  59. Ctrl4 = 0x020034,
  60. Ctrl5 = 0x020035,
  61. Ctrl6 = 0x020036,
  62. Ctrl7 = 0x020037,
  63. Ctrl8 = 0x020038,
  64. Ctrl9 = 0x020039,
  65. CtrlA = 0x020041,
  66. CtrlB = 0x020042,
  67. CtrlC = 0x020043,
  68. CtrlD = 0x020044,
  69. CtrlDel = 0x02002E,
  70. CtrlE = 0x020045,
  71. CtrlF = 0x020046,
  72. CtrlF1 = 0x020070,
  73. CtrlF10 = 0x020079,
  74. CtrlF11 = 0x02007A,
  75. CtrlF12 = 0x02007B,
  76. CtrlF2 = 0x020071,
  77. CtrlF3 = 0x020072,
  78. CtrlF4 = 0x020073,
  79. CtrlF5 = 0x020074,
  80. CtrlF6 = 0x020075,
  81. CtrlF7 = 0x020076,
  82. CtrlF8 = 0x020077,
  83. CtrlF9 = 0x020078,
  84. CtrlG = 0x020047,
  85. CtrlH = 0x020048,
  86. CtrlI = 0x020049,
  87. CtrlIns = 0x02002D,
  88. CtrlJ = 0x02004A,
  89. CtrlK = 0x02004B,
  90. CtrlL = 0x02004C,
  91. CtrlM = 0x02004D,
  92. CtrlN = 0x02004E,
  93. CtrlO = 0x02004F,
  94. CtrlP = 0x020050,
  95. CtrlQ = 0x020051,
  96. CtrlR = 0x020052,
  97. CtrlS = 0x020053,
  98. CtrlShift0 = 0x030030,
  99. CtrlShift1 = 0x030031,
  100. CtrlShift2 = 0x030032,
  101. CtrlShift3 = 0x030033,
  102. CtrlShift4 = 0x030034,
  103. CtrlShift5 = 0x030035,
  104. CtrlShift6 = 0x030036,
  105. CtrlShift7 = 0x030037,
  106. CtrlShift8 = 0x030038,
  107. CtrlShift9 = 0x030039,
  108. CtrlShiftA = 0x030041,
  109. CtrlShiftB = 0x030042,
  110. CtrlShiftC = 0x030043,
  111. CtrlShiftD = 0x030044,
  112. CtrlShiftE = 0x030045,
  113. CtrlShiftF = 0x030046,
  114. CtrlShiftF1 = 0x030070,
  115. CtrlShiftF10 = 0x030079,
  116. CtrlShiftF11 = 0x03007A,
  117. CtrlShiftF12 = 0x03007B,
  118. CtrlShiftF2 = 0x030071,
  119. CtrlShiftF3 = 0x030072,
  120. CtrlShiftF4 = 0x030073,
  121. CtrlShiftF5 = 0x030074,
  122. CtrlShiftF6 = 0x030075,
  123. CtrlShiftF7 = 0x030076,
  124. CtrlShiftF8 = 0x030077,
  125. CtrlShiftF9 = 0x030078,
  126. CtrlShiftG = 0x030047,
  127. CtrlShiftH = 0x030048,
  128. CtrlShiftI = 0x030049,
  129. CtrlShiftJ = 0x03004A,
  130. CtrlShiftK = 0x03004B,
  131. CtrlShiftL = 0x03004C,
  132. CtrlShiftM = 0x03004D,
  133. CtrlShiftN = 0x03004E,
  134. CtrlShiftO = 0x03004F,
  135. CtrlShiftP = 0x030050,
  136. CtrlShiftQ = 0x030051,
  137. CtrlShiftR = 0x030052,
  138. CtrlShiftS = 0x030053,
  139. CtrlShiftT = 0x030054,
  140. CtrlShiftU = 0x030055,
  141. CtrlShiftV = 0x030056,
  142. CtrlShiftW = 0x030057,
  143. CtrlShiftX = 0x030058,
  144. CtrlShiftY = 0x030059,
  145. CtrlShiftZ = 0x03005A,
  146. CtrlT = 0x020054,
  147. CtrlU = 0x020055,
  148. CtrlV = 0x020056,
  149. CtrlW = 0x020057,
  150. CtrlX = 0x020058,
  151. CtrlY = 0x020059,
  152. CtrlZ = 0x02005A,
  153. Del = 0x00002E,
  154. F1 = 0x000070,
  155. F10 = 0x000079,
  156. F11 = 0x00007A,
  157. F12 = 0x00007B,
  158. F2 = 0x000071,
  159. F3 = 0x000072,
  160. F4 = 0x000073,
  161. F5 = 0x000074,
  162. F6 = 0x000075,
  163. F7 = 0x000076,
  164. F8 = 0x000077,
  165. F9 = 0x000078,
  166. Ins = 0x00002D,
  167. None = 0x000000,
  168. ShiftDel = 65582,
  169. ShiftF1 = 65648,
  170. ShiftF10 = 65657,
  171. ShiftF11 = 65658,
  172. ShiftF12 = 65659,
  173. ShiftF2 = 65649,
  174. ShiftF3 = 65650,
  175. ShiftF4 = 65651,
  176. ShiftF5 = 65652,
  177. ShiftF6 = 65653,
  178. ShiftF7 = 65654,
  179. ShiftF8 = 65655,
  180. ShiftF9 = 65656,
  181. ShiftIns = 65581,
  182. }
  183. }