Terminal.Gui.ShortcutHelper.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  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>Class ShortcutHelper
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class ShortcutHelper
  11. ">
  12. <meta name="generator" content="docfx 2.59.4.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=Source Sans Pro" rel="stylesheet">
  18. <link href="https://fonts.googleapis.com/css?family=Source Code Pro" rel="stylesheet">
  19. <meta property="docfx:navrel" content="../../toc.html">
  20. <meta property="docfx:tocrel" content="toc.html">
  21. <meta property="docfx:rel" content="../../">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../../index.html">
  35. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list">Search Results for <span></span></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="Terminal.Gui.ShortcutHelper">
  74. <h1 id="Terminal_Gui_ShortcutHelper" data-uid="Terminal.Gui.ShortcutHelper" class="text-break">Class ShortcutHelper
  75. </h1>
  76. <div class="markdown level0 summary">
  77. Represents a helper to manipulate shortcut keys used on views.
  78. </div>
  79. <div class="markdown level0 conceptual"></div>
  80. <div class="inheritance">
  81. <h5>Inheritance</h5>
  82. <div class="level0"><span class="xref">System.Object</span></div>
  83. <div class="level1"><span class="xref">ShortcutHelper</span></div>
  84. </div>
  85. <div class="inheritedMembers">
  86. <h5>Inherited Members</h5>
  87. <div>
  88. <span class="xref">System.Object.Equals(System.Object)</span>
  89. </div>
  90. <div>
  91. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  92. </div>
  93. <div>
  94. <span class="xref">System.Object.GetHashCode()</span>
  95. </div>
  96. <div>
  97. <span class="xref">System.Object.GetType()</span>
  98. </div>
  99. <div>
  100. <span class="xref">System.Object.MemberwiseClone()</span>
  101. </div>
  102. <div>
  103. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  104. </div>
  105. <div>
  106. <span class="xref">System.Object.ToString()</span>
  107. </div>
  108. </div>
  109. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  110. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  111. <h5 id="Terminal_Gui_ShortcutHelper_syntax">Syntax</h5>
  112. <div class="codewrapper">
  113. <pre><code class="lang-csharp hljs">public class ShortcutHelper</code></pre>
  114. </div>
  115. <h3 id="properties">Properties
  116. </h3>
  117. <span class="small pull-right mobile-hide">
  118. <span class="divider">|</span>
  119. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_ShortcutHelper_Shortcut.md&amp;value=---%0Auid%3A%20Terminal.Gui.ShortcutHelper.Shortcut%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  120. </span>
  121. <span class="small pull-right mobile-hide">
  122. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ShortcutHelper.cs/#L18">View Source</a>
  123. </span>
  124. <a id="Terminal_Gui_ShortcutHelper_Shortcut_" data-uid="Terminal.Gui.ShortcutHelper.Shortcut*"></a>
  125. <h4 id="Terminal_Gui_ShortcutHelper_Shortcut" data-uid="Terminal.Gui.ShortcutHelper.Shortcut">Shortcut</h4>
  126. <div class="markdown level1 summary">
  127. This is the global setting that can be used as a global shortcut to invoke the action on the view.
  128. </div>
  129. <div class="markdown level1 conceptual"></div>
  130. <h5 class="decalaration">Declaration</h5>
  131. <div class="codewrapper">
  132. <pre><code class="lang-csharp hljs">public virtual Key Shortcut { get; set; }</code></pre>
  133. </div>
  134. <h5 class="propertyValue">Property Value</h5>
  135. <table class="table table-bordered table-striped table-condensed">
  136. <thead>
  137. <tr>
  138. <th>Type</th>
  139. <th>Description</th>
  140. </tr>
  141. </thead>
  142. <tbody>
  143. <tr>
  144. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  145. <td></td>
  146. </tr>
  147. </tbody>
  148. </table>
  149. <span class="small pull-right mobile-hide">
  150. <span class="divider">|</span>
  151. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_ShortcutHelper_ShortcutAction.md&amp;value=---%0Auid%3A%20Terminal.Gui.ShortcutHelper.ShortcutAction%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  152. </span>
  153. <span class="small pull-right mobile-hide">
  154. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ShortcutHelper.cs/#L35">View Source</a>
  155. </span>
  156. <a id="Terminal_Gui_ShortcutHelper_ShortcutAction_" data-uid="Terminal.Gui.ShortcutHelper.ShortcutAction*"></a>
  157. <h4 id="Terminal_Gui_ShortcutHelper_ShortcutAction" data-uid="Terminal.Gui.ShortcutHelper.ShortcutAction">ShortcutAction</h4>
  158. <div class="markdown level1 summary">
  159. The action to run if the <a class="xref" href="Terminal.Gui.ShortcutHelper.html#Terminal_Gui_ShortcutHelper_Shortcut">Shortcut</a> is defined.
  160. </div>
  161. <div class="markdown level1 conceptual"></div>
  162. <h5 class="decalaration">Declaration</h5>
  163. <div class="codewrapper">
  164. <pre><code class="lang-csharp hljs">public virtual Action ShortcutAction { get; set; }</code></pre>
  165. </div>
  166. <h5 class="propertyValue">Property Value</h5>
  167. <table class="table table-bordered table-striped table-condensed">
  168. <thead>
  169. <tr>
  170. <th>Type</th>
  171. <th>Description</th>
  172. </tr>
  173. </thead>
  174. <tbody>
  175. <tr>
  176. <td><span class="xref">System.Action</span></td>
  177. <td></td>
  178. </tr>
  179. </tbody>
  180. </table>
  181. <span class="small pull-right mobile-hide">
  182. <span class="divider">|</span>
  183. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_ShortcutHelper_ShortcutTag.md&amp;value=---%0Auid%3A%20Terminal.Gui.ShortcutHelper.ShortcutTag%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  184. </span>
  185. <span class="small pull-right mobile-hide">
  186. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ShortcutHelper.cs/#L30">View Source</a>
  187. </span>
  188. <a id="Terminal_Gui_ShortcutHelper_ShortcutTag_" data-uid="Terminal.Gui.ShortcutHelper.ShortcutTag*"></a>
  189. <h4 id="Terminal_Gui_ShortcutHelper_ShortcutTag" data-uid="Terminal.Gui.ShortcutHelper.ShortcutTag">ShortcutTag</h4>
  190. <div class="markdown level1 summary">
  191. The keystroke combination used in the <a class="xref" href="Terminal.Gui.ShortcutHelper.html#Terminal_Gui_ShortcutHelper_Shortcut">Shortcut</a> as string.
  192. </div>
  193. <div class="markdown level1 conceptual"></div>
  194. <h5 class="decalaration">Declaration</h5>
  195. <div class="codewrapper">
  196. <pre><code class="lang-csharp hljs">public virtual ustring ShortcutTag { get; }</code></pre>
  197. </div>
  198. <h5 class="propertyValue">Property Value</h5>
  199. <table class="table table-bordered table-striped table-condensed">
  200. <thead>
  201. <tr>
  202. <th>Type</th>
  203. <th>Description</th>
  204. </tr>
  205. </thead>
  206. <tbody>
  207. <tr>
  208. <td><span class="xref">NStack.ustring</span></td>
  209. <td></td>
  210. </tr>
  211. </tbody>
  212. </table>
  213. <h3 id="methods">Methods
  214. </h3>
  215. <span class="small pull-right mobile-hide">
  216. <span class="divider">|</span>
  217. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_ShortcutHelper_CheckKeysFlagRange_Terminal_Gui_Key_Terminal_Gui_Key_Terminal_Gui_Key_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ShortcutHelper.CheckKeysFlagRange(Terminal.Gui.Key%2CTerminal.Gui.Key%2CTerminal.Gui.Key)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  218. </span>
  219. <span class="small pull-right mobile-hide">
  220. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ShortcutHelper.cs/#L198">View Source</a>
  221. </span>
  222. <a id="Terminal_Gui_ShortcutHelper_CheckKeysFlagRange_" data-uid="Terminal.Gui.ShortcutHelper.CheckKeysFlagRange*"></a>
  223. <h4 id="Terminal_Gui_ShortcutHelper_CheckKeysFlagRange_Terminal_Gui_Key_Terminal_Gui_Key_Terminal_Gui_Key_" data-uid="Terminal.Gui.ShortcutHelper.CheckKeysFlagRange(Terminal.Gui.Key,Terminal.Gui.Key,Terminal.Gui.Key)">CheckKeysFlagRange(Key, Key, Key)</h4>
  224. <div class="markdown level1 summary">
  225. Lookup for a <a class="xref" href="Terminal.Gui.Key.html">Key</a> on range of keys.
  226. </div>
  227. <div class="markdown level1 conceptual"></div>
  228. <h5 class="decalaration">Declaration</h5>
  229. <div class="codewrapper">
  230. <pre><code class="lang-csharp hljs">public static bool CheckKeysFlagRange(Key key, Key first, Key last)</code></pre>
  231. </div>
  232. <h5 class="parameters">Parameters</h5>
  233. <table class="table table-bordered table-striped table-condensed">
  234. <thead>
  235. <tr>
  236. <th>Type</th>
  237. <th>Name</th>
  238. <th>Description</th>
  239. </tr>
  240. </thead>
  241. <tbody>
  242. <tr>
  243. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  244. <td><span class="parametername">key</span></td>
  245. <td>The source key.</td>
  246. </tr>
  247. <tr>
  248. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  249. <td><span class="parametername">first</span></td>
  250. <td>First key in range.</td>
  251. </tr>
  252. <tr>
  253. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  254. <td><span class="parametername">last</span></td>
  255. <td>Last key in range.</td>
  256. </tr>
  257. </tbody>
  258. </table>
  259. <h5 class="returns">Returns</h5>
  260. <table class="table table-bordered table-striped table-condensed">
  261. <thead>
  262. <tr>
  263. <th>Type</th>
  264. <th>Description</th>
  265. </tr>
  266. </thead>
  267. <tbody>
  268. <tr>
  269. <td><span class="xref">System.Boolean</span></td>
  270. <td></td>
  271. </tr>
  272. </tbody>
  273. </table>
  274. <span class="small pull-right mobile-hide">
  275. <span class="divider">|</span>
  276. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_ShortcutHelper_FindAndOpenByShortcut_Terminal_Gui_KeyEvent_Terminal_Gui_View_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ShortcutHelper.FindAndOpenByShortcut(Terminal.Gui.KeyEvent%2CTerminal.Gui.View)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  277. </span>
  278. <span class="small pull-right mobile-hide">
  279. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ShortcutHelper.cs/#L244">View Source</a>
  280. </span>
  281. <a id="Terminal_Gui_ShortcutHelper_FindAndOpenByShortcut_" data-uid="Terminal.Gui.ShortcutHelper.FindAndOpenByShortcut*"></a>
  282. <h4 id="Terminal_Gui_ShortcutHelper_FindAndOpenByShortcut_Terminal_Gui_KeyEvent_Terminal_Gui_View_" data-uid="Terminal.Gui.ShortcutHelper.FindAndOpenByShortcut(Terminal.Gui.KeyEvent,Terminal.Gui.View)">FindAndOpenByShortcut(KeyEvent, View)</h4>
  283. <div class="markdown level1 summary">
  284. Allows a view to run a <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutAction">ShortcutAction</a> if defined.
  285. </div>
  286. <div class="markdown level1 conceptual"></div>
  287. <h5 class="decalaration">Declaration</h5>
  288. <div class="codewrapper">
  289. <pre><code class="lang-csharp hljs">public static bool FindAndOpenByShortcut(KeyEvent kb, View view = null)</code></pre>
  290. </div>
  291. <h5 class="parameters">Parameters</h5>
  292. <table class="table table-bordered table-striped table-condensed">
  293. <thead>
  294. <tr>
  295. <th>Type</th>
  296. <th>Name</th>
  297. <th>Description</th>
  298. </tr>
  299. </thead>
  300. <tbody>
  301. <tr>
  302. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  303. <td><span class="parametername">kb</span></td>
  304. <td>The <a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  305. </tr>
  306. <tr>
  307. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  308. <td><span class="parametername">view</span></td>
  309. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a></td>
  310. </tr>
  311. </tbody>
  312. </table>
  313. <h5 class="returns">Returns</h5>
  314. <table class="table table-bordered table-striped table-condensed">
  315. <thead>
  316. <tr>
  317. <th>Type</th>
  318. <th>Description</th>
  319. </tr>
  320. </thead>
  321. <tbody>
  322. <tr>
  323. <td><span class="xref">System.Boolean</span></td>
  324. <td><code>true</code> if defined <code>false</code>otherwise.</td>
  325. </tr>
  326. </tbody>
  327. </table>
  328. <span class="small pull-right mobile-hide">
  329. <span class="divider">|</span>
  330. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_ShortcutHelper_GetKeyToString_Terminal_Gui_Key_Terminal_Gui_Key__.md&amp;value=---%0Auid%3A%20Terminal.Gui.ShortcutHelper.GetKeyToString(Terminal.Gui.Key%2CTerminal.Gui.Key%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  331. </span>
  332. <span class="small pull-right mobile-hide">
  333. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ShortcutHelper.cs/#L123">View Source</a>
  334. </span>
  335. <a id="Terminal_Gui_ShortcutHelper_GetKeyToString_" data-uid="Terminal.Gui.ShortcutHelper.GetKeyToString*"></a>
  336. <h4 id="Terminal_Gui_ShortcutHelper_GetKeyToString_Terminal_Gui_Key_Terminal_Gui_Key__" data-uid="Terminal.Gui.ShortcutHelper.GetKeyToString(Terminal.Gui.Key,Terminal.Gui.Key@)">GetKeyToString(Key, out Key)</h4>
  337. <div class="markdown level1 summary">
  338. Return key as string.
  339. </div>
  340. <div class="markdown level1 conceptual"></div>
  341. <h5 class="decalaration">Declaration</h5>
  342. <div class="codewrapper">
  343. <pre><code class="lang-csharp hljs">public static ustring GetKeyToString(Key key, out Key knm)</code></pre>
  344. </div>
  345. <h5 class="parameters">Parameters</h5>
  346. <table class="table table-bordered table-striped table-condensed">
  347. <thead>
  348. <tr>
  349. <th>Type</th>
  350. <th>Name</th>
  351. <th>Description</th>
  352. </tr>
  353. </thead>
  354. <tbody>
  355. <tr>
  356. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  357. <td><span class="parametername">key</span></td>
  358. <td>The key to extract.</td>
  359. </tr>
  360. <tr>
  361. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  362. <td><span class="parametername">knm</span></td>
  363. <td>Correspond to the non modifier key.</td>
  364. </tr>
  365. </tbody>
  366. </table>
  367. <h5 class="returns">Returns</h5>
  368. <table class="table table-bordered table-striped table-condensed">
  369. <thead>
  370. <tr>
  371. <th>Type</th>
  372. <th>Description</th>
  373. </tr>
  374. </thead>
  375. <tbody>
  376. <tr>
  377. <td><span class="xref">NStack.ustring</span></td>
  378. <td></td>
  379. </tr>
  380. </tbody>
  381. </table>
  382. <span class="small pull-right mobile-hide">
  383. <span class="divider">|</span>
  384. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_ShortcutHelper_GetModifiersKey_Terminal_Gui_KeyEvent_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ShortcutHelper.GetModifiersKey(Terminal.Gui.KeyEvent)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  385. </span>
  386. <span class="small pull-right mobile-hide">
  387. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ShortcutHelper.cs/#L42">View Source</a>
  388. </span>
  389. <a id="Terminal_Gui_ShortcutHelper_GetModifiersKey_" data-uid="Terminal.Gui.ShortcutHelper.GetModifiersKey*"></a>
  390. <h4 id="Terminal_Gui_ShortcutHelper_GetModifiersKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.ShortcutHelper.GetModifiersKey(Terminal.Gui.KeyEvent)">GetModifiersKey(KeyEvent)</h4>
  391. <div class="markdown level1 summary">
  392. Gets the key with all the keys modifiers, especially the shift key that sometimes have to be injected later.
  393. </div>
  394. <div class="markdown level1 conceptual"></div>
  395. <h5 class="decalaration">Declaration</h5>
  396. <div class="codewrapper">
  397. <pre><code class="lang-csharp hljs">public static Key GetModifiersKey(KeyEvent kb)</code></pre>
  398. </div>
  399. <h5 class="parameters">Parameters</h5>
  400. <table class="table table-bordered table-striped table-condensed">
  401. <thead>
  402. <tr>
  403. <th>Type</th>
  404. <th>Name</th>
  405. <th>Description</th>
  406. </tr>
  407. </thead>
  408. <tbody>
  409. <tr>
  410. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  411. <td><span class="parametername">kb</span></td>
  412. <td>The <a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a> to check.</td>
  413. </tr>
  414. </tbody>
  415. </table>
  416. <h5 class="returns">Returns</h5>
  417. <table class="table table-bordered table-striped table-condensed">
  418. <thead>
  419. <tr>
  420. <th>Type</th>
  421. <th>Description</th>
  422. </tr>
  423. </thead>
  424. <tbody>
  425. <tr>
  426. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  427. <td>The <a class="xref" href="Terminal.Gui.KeyEvent.html#Terminal_Gui_KeyEvent_Key">Key</a> with all the keys modifiers.</td>
  428. </tr>
  429. </tbody>
  430. </table>
  431. <span class="small pull-right mobile-hide">
  432. <span class="divider">|</span>
  433. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_ShortcutHelper_GetShortcutFromTag_NStack_ustring_NStack_ustring_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ShortcutHelper.GetShortcutFromTag(NStack.ustring%2CNStack.ustring)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  434. </span>
  435. <span class="small pull-right mobile-hide">
  436. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ShortcutHelper.cs/#L153">View Source</a>
  437. </span>
  438. <a id="Terminal_Gui_ShortcutHelper_GetShortcutFromTag_" data-uid="Terminal.Gui.ShortcutHelper.GetShortcutFromTag*"></a>
  439. <h4 id="Terminal_Gui_ShortcutHelper_GetShortcutFromTag_NStack_ustring_NStack_ustring_" data-uid="Terminal.Gui.ShortcutHelper.GetShortcutFromTag(NStack.ustring,NStack.ustring)">GetShortcutFromTag(ustring, ustring)</h4>
  440. <div class="markdown level1 summary">
  441. Allows to retrieve a <a class="xref" href="Terminal.Gui.Key.html">Key</a> from a <a class="xref" href="Terminal.Gui.ShortcutHelper.html#Terminal_Gui_ShortcutHelper_ShortcutTag">ShortcutTag</a>
  442. </div>
  443. <div class="markdown level1 conceptual"></div>
  444. <h5 class="decalaration">Declaration</h5>
  445. <div class="codewrapper">
  446. <pre><code class="lang-csharp hljs">public static Key GetShortcutFromTag(ustring tag, ustring delimiter = null)</code></pre>
  447. </div>
  448. <h5 class="parameters">Parameters</h5>
  449. <table class="table table-bordered table-striped table-condensed">
  450. <thead>
  451. <tr>
  452. <th>Type</th>
  453. <th>Name</th>
  454. <th>Description</th>
  455. </tr>
  456. </thead>
  457. <tbody>
  458. <tr>
  459. <td><span class="xref">NStack.ustring</span></td>
  460. <td><span class="parametername">tag</span></td>
  461. <td>The key as string.</td>
  462. </tr>
  463. <tr>
  464. <td><span class="xref">NStack.ustring</span></td>
  465. <td><span class="parametername">delimiter</span></td>
  466. <td>The delimiter string.</td>
  467. </tr>
  468. </tbody>
  469. </table>
  470. <h5 class="returns">Returns</h5>
  471. <table class="table table-bordered table-striped table-condensed">
  472. <thead>
  473. <tr>
  474. <th>Type</th>
  475. <th>Description</th>
  476. </tr>
  477. </thead>
  478. <tbody>
  479. <tr>
  480. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  481. <td></td>
  482. </tr>
  483. </tbody>
  484. </table>
  485. <span class="small pull-right mobile-hide">
  486. <span class="divider">|</span>
  487. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_ShortcutHelper_GetShortcutTag_Terminal_Gui_Key_NStack_ustring_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ShortcutHelper.GetShortcutTag(Terminal.Gui.Key%2CNStack.ustring)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  488. </span>
  489. <span class="small pull-right mobile-hide">
  490. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ShortcutHelper.cs/#L64">View Source</a>
  491. </span>
  492. <a id="Terminal_Gui_ShortcutHelper_GetShortcutTag_" data-uid="Terminal.Gui.ShortcutHelper.GetShortcutTag*"></a>
  493. <h4 id="Terminal_Gui_ShortcutHelper_GetShortcutTag_Terminal_Gui_Key_NStack_ustring_" data-uid="Terminal.Gui.ShortcutHelper.GetShortcutTag(Terminal.Gui.Key,NStack.ustring)">GetShortcutTag(Key, ustring)</h4>
  494. <div class="markdown level1 summary">
  495. Get the <a class="xref" href="Terminal.Gui.ShortcutHelper.html#Terminal_Gui_ShortcutHelper_Shortcut">Shortcut</a> key as string.
  496. </div>
  497. <div class="markdown level1 conceptual"></div>
  498. <h5 class="decalaration">Declaration</h5>
  499. <div class="codewrapper">
  500. <pre><code class="lang-csharp hljs">public static ustring GetShortcutTag(Key shortcut, ustring delimiter = null)</code></pre>
  501. </div>
  502. <h5 class="parameters">Parameters</h5>
  503. <table class="table table-bordered table-striped table-condensed">
  504. <thead>
  505. <tr>
  506. <th>Type</th>
  507. <th>Name</th>
  508. <th>Description</th>
  509. </tr>
  510. </thead>
  511. <tbody>
  512. <tr>
  513. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  514. <td><span class="parametername">shortcut</span></td>
  515. <td>The shortcut key.</td>
  516. </tr>
  517. <tr>
  518. <td><span class="xref">NStack.ustring</span></td>
  519. <td><span class="parametername">delimiter</span></td>
  520. <td>The delimiter string.</td>
  521. </tr>
  522. </tbody>
  523. </table>
  524. <h5 class="returns">Returns</h5>
  525. <table class="table table-bordered table-striped table-condensed">
  526. <thead>
  527. <tr>
  528. <th>Type</th>
  529. <th>Description</th>
  530. </tr>
  531. </thead>
  532. <tbody>
  533. <tr>
  534. <td><span class="xref">NStack.ustring</span></td>
  535. <td></td>
  536. </tr>
  537. </tbody>
  538. </table>
  539. <span class="small pull-right mobile-hide">
  540. <span class="divider">|</span>
  541. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_ShortcutHelper_PostShortcutValidation_Terminal_Gui_Key_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ShortcutHelper.PostShortcutValidation(Terminal.Gui.Key)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  542. </span>
  543. <span class="small pull-right mobile-hide">
  544. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ShortcutHelper.cs/#L227">View Source</a>
  545. </span>
  546. <a id="Terminal_Gui_ShortcutHelper_PostShortcutValidation_" data-uid="Terminal.Gui.ShortcutHelper.PostShortcutValidation*"></a>
  547. <h4 id="Terminal_Gui_ShortcutHelper_PostShortcutValidation_Terminal_Gui_Key_" data-uid="Terminal.Gui.ShortcutHelper.PostShortcutValidation(Terminal.Gui.Key)">PostShortcutValidation(Key)</h4>
  548. <div class="markdown level1 summary">
  549. Used at key up validation.
  550. </div>
  551. <div class="markdown level1 conceptual"></div>
  552. <h5 class="decalaration">Declaration</h5>
  553. <div class="codewrapper">
  554. <pre><code class="lang-csharp hljs">public static bool PostShortcutValidation(Key key)</code></pre>
  555. </div>
  556. <h5 class="parameters">Parameters</h5>
  557. <table class="table table-bordered table-striped table-condensed">
  558. <thead>
  559. <tr>
  560. <th>Type</th>
  561. <th>Name</th>
  562. <th>Description</th>
  563. </tr>
  564. </thead>
  565. <tbody>
  566. <tr>
  567. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  568. <td><span class="parametername">key</span></td>
  569. <td>The key to validate.</td>
  570. </tr>
  571. </tbody>
  572. </table>
  573. <h5 class="returns">Returns</h5>
  574. <table class="table table-bordered table-striped table-condensed">
  575. <thead>
  576. <tr>
  577. <th>Type</th>
  578. <th>Description</th>
  579. </tr>
  580. </thead>
  581. <tbody>
  582. <tr>
  583. <td><span class="xref">System.Boolean</span></td>
  584. <td><code>true</code> if is valid.<code>false</code>otherwise.</td>
  585. </tr>
  586. </tbody>
  587. </table>
  588. <span class="small pull-right mobile-hide">
  589. <span class="divider">|</span>
  590. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_ShortcutHelper_PreShortcutValidation_Terminal_Gui_Key_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ShortcutHelper.PreShortcutValidation(Terminal.Gui.Key)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  591. </span>
  592. <span class="small pull-right mobile-hide">
  593. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ShortcutHelper.cs/#L213">View Source</a>
  594. </span>
  595. <a id="Terminal_Gui_ShortcutHelper_PreShortcutValidation_" data-uid="Terminal.Gui.ShortcutHelper.PreShortcutValidation*"></a>
  596. <h4 id="Terminal_Gui_ShortcutHelper_PreShortcutValidation_Terminal_Gui_Key_" data-uid="Terminal.Gui.ShortcutHelper.PreShortcutValidation(Terminal.Gui.Key)">PreShortcutValidation(Key)</h4>
  597. <div class="markdown level1 summary">
  598. Used at key down or key press validation.
  599. </div>
  600. <div class="markdown level1 conceptual"></div>
  601. <h5 class="decalaration">Declaration</h5>
  602. <div class="codewrapper">
  603. <pre><code class="lang-csharp hljs">public static bool PreShortcutValidation(Key key)</code></pre>
  604. </div>
  605. <h5 class="parameters">Parameters</h5>
  606. <table class="table table-bordered table-striped table-condensed">
  607. <thead>
  608. <tr>
  609. <th>Type</th>
  610. <th>Name</th>
  611. <th>Description</th>
  612. </tr>
  613. </thead>
  614. <tbody>
  615. <tr>
  616. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  617. <td><span class="parametername">key</span></td>
  618. <td>The key to validate.</td>
  619. </tr>
  620. </tbody>
  621. </table>
  622. <h5 class="returns">Returns</h5>
  623. <table class="table table-bordered table-striped table-condensed">
  624. <thead>
  625. <tr>
  626. <th>Type</th>
  627. <th>Description</th>
  628. </tr>
  629. </thead>
  630. <tbody>
  631. <tr>
  632. <td><span class="xref">System.Boolean</span></td>
  633. <td><code>true</code> if is valid.<code>false</code>otherwise.</td>
  634. </tr>
  635. </tbody>
  636. </table>
  637. </article>
  638. </div>
  639. <div class="hidden-sm col-md-2" role="complementary">
  640. <div class="sideaffix">
  641. <div class="contribution">
  642. <ul class="nav">
  643. <li>
  644. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_ShortcutHelper.md&amp;value=---%0Auid%3A%20Terminal.Gui.ShortcutHelper%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  645. </li>
  646. <li>
  647. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ShortcutHelper.cs/#L12" class="contribution-link">View Source</a>
  648. </li>
  649. </ul>
  650. </div>
  651. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  652. <h5>In This Article</h5>
  653. <div></div>
  654. </nav>
  655. </div>
  656. </div>
  657. </div>
  658. </div>
  659. <footer>
  660. <div class="grad-bottom"></div>
  661. <div class="footer">
  662. <div class="container">
  663. <span class="pull-right">
  664. <a href="#top">Back to top</a>
  665. </span>
  666. <span>Generated by <strong>DocFX</strong></span>
  667. </div>
  668. </div>
  669. </footer>
  670. </div>
  671. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  672. <script type="text/javascript" src="../../styles/docfx.js"></script>
  673. <script type="text/javascript" src="../../styles/main.js"></script>
  674. </body>
  675. </html>