Terminal.Gui.Key.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Enum Key
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Enum Key
  11. ">
  12. <meta name="generator" content="docfx 2.53.1.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  18. <meta property="docfx:navrel" content="">
  19. <meta property="docfx:tocrel" content="toc.html">
  20. <meta property="docfx:rel" content="../../">
  21. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../../index.html">
  34. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list"></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="Terminal.Gui.Key">
  73. <h1 id="Terminal_Gui_Key" data-uid="Terminal.Gui.Key" class="text-break">Enum Key
  74. </h1>
  75. <div class="markdown level0 summary">
  76. The <a class="xref" href="Terminal.Gui.Key.html">Key</a> enumeration contains special encoding for some keys, but can also
  77. encode all the unicode values that can be passed.
  78. </div>
  79. <div class="markdown level0 conceptual"></div>
  80. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  81. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  82. <h5 id="Terminal_Gui_Key_syntax">Syntax</h5>
  83. <div class="codewrapper">
  84. <pre><code class="lang-csharp hljs">[Flags]
  85. public enum Key : uint</code></pre>
  86. </div>
  87. <h5 id="Terminal_Gui_Key_remarks"><strong>Remarks</strong></h5>
  88. <div class="markdown level0 remarks">
  89. <p>
  90. If the <a class="xref" href="Terminal.Gui.Key.html#Terminal_Gui_Key_SpecialMask">SpecialMask</a> is set, then the value is that of the special mask,
  91. otherwise, the value is the one of the lower bits (as extracted by <a class="xref" href="Terminal.Gui.Key.html#Terminal_Gui_Key_CharMask">CharMask</a>)
  92. </p>
  93. <p>
  94. Control keys are the values between 1 and 26 corresponding to Control-A to Control-Z
  95. </p>
  96. <p>
  97. Unicode runes are also stored here, the letter &apos;A&quot; for example is encoded as a value 65 (not surfaced in the enum).
  98. </p>
  99. </div>
  100. <h3 id="fields">Fields
  101. </h3>
  102. <table class="table table-bordered table-striped table-condensed">
  103. <thead>
  104. <tr>
  105. <th>Name</th>
  106. <th>Description</th>
  107. </tr>
  108. <thead>
  109. <tbody>
  110. <tr>
  111. <td id="Terminal_Gui_Key_AltMask">AltMask</td>
  112. <td>
  113. When this value is set, the Key encodes the sequence Alt-KeyValue.
  114. And the actual value must be extracted by removing the AltMask.
  115. </td>
  116. </tr>
  117. <tr>
  118. <td id="Terminal_Gui_Key_Backspace">Backspace</td>
  119. <td>
  120. Backspace key.
  121. </td>
  122. </tr>
  123. <tr>
  124. <td id="Terminal_Gui_Key_BackTab">BackTab</td>
  125. <td>
  126. Shift-tab key (backwards tab key).
  127. </td>
  128. </tr>
  129. <tr>
  130. <td id="Terminal_Gui_Key_CharMask">CharMask</td>
  131. <td>
  132. Mask that indicates that this is a character value, values outside this range
  133. indicate special characters like Alt-key combinations or special keys on the
  134. keyboard like function keys, arrows keys and so on.
  135. </td>
  136. </tr>
  137. <tr>
  138. <td id="Terminal_Gui_Key_ControlA">ControlA</td>
  139. <td>
  140. The key code for the user pressing Control-A
  141. </td>
  142. </tr>
  143. <tr>
  144. <td id="Terminal_Gui_Key_ControlB">ControlB</td>
  145. <td>
  146. The key code for the user pressing Control-B
  147. </td>
  148. </tr>
  149. <tr>
  150. <td id="Terminal_Gui_Key_ControlC">ControlC</td>
  151. <td>
  152. The key code for the user pressing Control-C
  153. </td>
  154. </tr>
  155. <tr>
  156. <td id="Terminal_Gui_Key_ControlD">ControlD</td>
  157. <td>
  158. The key code for the user pressing Control-D
  159. </td>
  160. </tr>
  161. <tr>
  162. <td id="Terminal_Gui_Key_ControlE">ControlE</td>
  163. <td>
  164. The key code for the user pressing Control-E
  165. </td>
  166. </tr>
  167. <tr>
  168. <td id="Terminal_Gui_Key_ControlF">ControlF</td>
  169. <td>
  170. The key code for the user pressing Control-F
  171. </td>
  172. </tr>
  173. <tr>
  174. <td id="Terminal_Gui_Key_ControlG">ControlG</td>
  175. <td>
  176. The key code for the user pressing Control-G
  177. </td>
  178. </tr>
  179. <tr>
  180. <td id="Terminal_Gui_Key_ControlH">ControlH</td>
  181. <td>
  182. The key code for the user pressing Control-H
  183. </td>
  184. </tr>
  185. <tr>
  186. <td id="Terminal_Gui_Key_ControlI">ControlI</td>
  187. <td>
  188. The key code for the user pressing Control-I (same as the tab key).
  189. </td>
  190. </tr>
  191. <tr>
  192. <td id="Terminal_Gui_Key_ControlJ">ControlJ</td>
  193. <td>
  194. The key code for the user pressing Control-J
  195. </td>
  196. </tr>
  197. <tr>
  198. <td id="Terminal_Gui_Key_ControlK">ControlK</td>
  199. <td>
  200. The key code for the user pressing Control-K
  201. </td>
  202. </tr>
  203. <tr>
  204. <td id="Terminal_Gui_Key_ControlL">ControlL</td>
  205. <td>
  206. The key code for the user pressing Control-L
  207. </td>
  208. </tr>
  209. <tr>
  210. <td id="Terminal_Gui_Key_ControlM">ControlM</td>
  211. <td>
  212. The key code for the user pressing Control-M
  213. </td>
  214. </tr>
  215. <tr>
  216. <td id="Terminal_Gui_Key_ControlN">ControlN</td>
  217. <td>
  218. The key code for the user pressing Control-N (same as the return key).
  219. </td>
  220. </tr>
  221. <tr>
  222. <td id="Terminal_Gui_Key_ControlO">ControlO</td>
  223. <td>
  224. The key code for the user pressing Control-O
  225. </td>
  226. </tr>
  227. <tr>
  228. <td id="Terminal_Gui_Key_ControlP">ControlP</td>
  229. <td>
  230. The key code for the user pressing Control-P
  231. </td>
  232. </tr>
  233. <tr>
  234. <td id="Terminal_Gui_Key_ControlQ">ControlQ</td>
  235. <td>
  236. The key code for the user pressing Control-Q
  237. </td>
  238. </tr>
  239. <tr>
  240. <td id="Terminal_Gui_Key_ControlR">ControlR</td>
  241. <td>
  242. The key code for the user pressing Control-R
  243. </td>
  244. </tr>
  245. <tr>
  246. <td id="Terminal_Gui_Key_ControlS">ControlS</td>
  247. <td>
  248. The key code for the user pressing Control-S
  249. </td>
  250. </tr>
  251. <tr>
  252. <td id="Terminal_Gui_Key_ControlSpace">ControlSpace</td>
  253. <td>
  254. The key code for the user pressing Control-spacebar
  255. </td>
  256. </tr>
  257. <tr>
  258. <td id="Terminal_Gui_Key_ControlT">ControlT</td>
  259. <td>
  260. The key code for the user pressing Control-T
  261. </td>
  262. </tr>
  263. <tr>
  264. <td id="Terminal_Gui_Key_ControlU">ControlU</td>
  265. <td>
  266. The key code for the user pressing Control-U
  267. </td>
  268. </tr>
  269. <tr>
  270. <td id="Terminal_Gui_Key_ControlV">ControlV</td>
  271. <td>
  272. The key code for the user pressing Control-V
  273. </td>
  274. </tr>
  275. <tr>
  276. <td id="Terminal_Gui_Key_ControlW">ControlW</td>
  277. <td>
  278. The key code for the user pressing Control-W
  279. </td>
  280. </tr>
  281. <tr>
  282. <td id="Terminal_Gui_Key_ControlX">ControlX</td>
  283. <td>
  284. The key code for the user pressing Control-X
  285. </td>
  286. </tr>
  287. <tr>
  288. <td id="Terminal_Gui_Key_ControlY">ControlY</td>
  289. <td>
  290. The key code for the user pressing Control-Y
  291. </td>
  292. </tr>
  293. <tr>
  294. <td id="Terminal_Gui_Key_ControlZ">ControlZ</td>
  295. <td>
  296. The key code for the user pressing Control-Z
  297. </td>
  298. </tr>
  299. <tr>
  300. <td id="Terminal_Gui_Key_CtrlMask">CtrlMask</td>
  301. <td>
  302. When this value is set, the Key encodes the sequence Ctrl-KeyValue.
  303. And the actual value must be extracted by removing the CtrlMask.
  304. </td>
  305. </tr>
  306. <tr>
  307. <td id="Terminal_Gui_Key_CursorDown">CursorDown</td>
  308. <td>
  309. Cursor down key.
  310. </td>
  311. </tr>
  312. <tr>
  313. <td id="Terminal_Gui_Key_CursorLeft">CursorLeft</td>
  314. <td>
  315. Cursor left key.
  316. </td>
  317. </tr>
  318. <tr>
  319. <td id="Terminal_Gui_Key_CursorRight">CursorRight</td>
  320. <td>
  321. Cursor right key.
  322. </td>
  323. </tr>
  324. <tr>
  325. <td id="Terminal_Gui_Key_CursorUp">CursorUp</td>
  326. <td>
  327. Cursor up key
  328. </td>
  329. </tr>
  330. <tr>
  331. <td id="Terminal_Gui_Key_Delete">Delete</td>
  332. <td>
  333. The key code for the user pressing the delete key.
  334. </td>
  335. </tr>
  336. <tr>
  337. <td id="Terminal_Gui_Key_DeleteChar">DeleteChar</td>
  338. <td>
  339. Delete character key
  340. </td>
  341. </tr>
  342. <tr>
  343. <td id="Terminal_Gui_Key_End">End</td>
  344. <td>
  345. End key
  346. </td>
  347. </tr>
  348. <tr>
  349. <td id="Terminal_Gui_Key_Enter">Enter</td>
  350. <td>
  351. The key code for the user pressing the return key.
  352. </td>
  353. </tr>
  354. <tr>
  355. <td id="Terminal_Gui_Key_Esc">Esc</td>
  356. <td>
  357. The key code for the user pressing the escape key
  358. </td>
  359. </tr>
  360. <tr>
  361. <td id="Terminal_Gui_Key_F1">F1</td>
  362. <td>
  363. F1 key.
  364. </td>
  365. </tr>
  366. <tr>
  367. <td id="Terminal_Gui_Key_F10">F10</td>
  368. <td>
  369. F10 key.
  370. </td>
  371. </tr>
  372. <tr>
  373. <td id="Terminal_Gui_Key_F11">F11</td>
  374. <td>
  375. F11 key.
  376. </td>
  377. </tr>
  378. <tr>
  379. <td id="Terminal_Gui_Key_F12">F12</td>
  380. <td>
  381. F12 key.
  382. </td>
  383. </tr>
  384. <tr>
  385. <td id="Terminal_Gui_Key_F2">F2</td>
  386. <td>
  387. F2 key.
  388. </td>
  389. </tr>
  390. <tr>
  391. <td id="Terminal_Gui_Key_F3">F3</td>
  392. <td>
  393. F3 key.
  394. </td>
  395. </tr>
  396. <tr>
  397. <td id="Terminal_Gui_Key_F4">F4</td>
  398. <td>
  399. F4 key.
  400. </td>
  401. </tr>
  402. <tr>
  403. <td id="Terminal_Gui_Key_F5">F5</td>
  404. <td>
  405. F5 key.
  406. </td>
  407. </tr>
  408. <tr>
  409. <td id="Terminal_Gui_Key_F6">F6</td>
  410. <td>
  411. F6 key.
  412. </td>
  413. </tr>
  414. <tr>
  415. <td id="Terminal_Gui_Key_F7">F7</td>
  416. <td>
  417. F7 key.
  418. </td>
  419. </tr>
  420. <tr>
  421. <td id="Terminal_Gui_Key_F8">F8</td>
  422. <td>
  423. F8 key.
  424. </td>
  425. </tr>
  426. <tr>
  427. <td id="Terminal_Gui_Key_F9">F9</td>
  428. <td>
  429. F9 key.
  430. </td>
  431. </tr>
  432. <tr>
  433. <td id="Terminal_Gui_Key_Home">Home</td>
  434. <td>
  435. Home key
  436. </td>
  437. </tr>
  438. <tr>
  439. <td id="Terminal_Gui_Key_InsertChar">InsertChar</td>
  440. <td>
  441. Insert character key
  442. </td>
  443. </tr>
  444. <tr>
  445. <td id="Terminal_Gui_Key_PageDown">PageDown</td>
  446. <td>
  447. Page Down key.
  448. </td>
  449. </tr>
  450. <tr>
  451. <td id="Terminal_Gui_Key_PageUp">PageUp</td>
  452. <td>
  453. Page Up key.
  454. </td>
  455. </tr>
  456. <tr>
  457. <td id="Terminal_Gui_Key_ShiftMask">ShiftMask</td>
  458. <td>
  459. When this value is set, the Key encodes the sequence Shift-KeyValue.
  460. </td>
  461. </tr>
  462. <tr>
  463. <td id="Terminal_Gui_Key_Space">Space</td>
  464. <td>
  465. The key code for the user pressing the space bar
  466. </td>
  467. </tr>
  468. <tr>
  469. <td id="Terminal_Gui_Key_SpecialMask">SpecialMask</td>
  470. <td>
  471. If the <a class="xref" href="Terminal.Gui.Key.html#Terminal_Gui_Key_SpecialMask">SpecialMask</a> is set, then the value is that of the special mask,
  472. otherwise, the value is the one of the lower bits (as extracted by <a class="xref" href="Terminal.Gui.Key.html#Terminal_Gui_Key_CharMask">CharMask</a>).
  473. </td>
  474. </tr>
  475. <tr>
  476. <td id="Terminal_Gui_Key_Tab">Tab</td>
  477. <td>
  478. The key code for the user pressing the tab key (forwards tab key).
  479. </td>
  480. </tr>
  481. <tr>
  482. <td id="Terminal_Gui_Key_Unknown">Unknown</td>
  483. <td>
  484. A key with an unknown mapping was raised.
  485. </td>
  486. </tr>
  487. </tbody>
  488. </thead></thead></table>
  489. </article>
  490. </div>
  491. <div class="hidden-sm col-md-2" role="complementary">
  492. <div class="sideaffix">
  493. <div class="contribution">
  494. <ul class="nav">
  495. </ul>
  496. </div>
  497. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  498. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  499. </nav>
  500. </div>
  501. </div>
  502. </div>
  503. </div>
  504. <footer>
  505. <div class="grad-bottom"></div>
  506. <div class="footer">
  507. <div class="container">
  508. <span class="pull-right">
  509. <a href="#top">Back to top</a>
  510. </span>
  511. <span>Generated by <strong>DocFX</strong></span>
  512. </div>
  513. </div>
  514. </footer>
  515. </div>
  516. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  517. <script type="text/javascript" src="../../styles/docfx.js"></script>
  518. <script type="text/javascript" src="../../styles/main.js"></script>
  519. </body>
  520. </html>