Terminal.Gui.Responder.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  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 Responder
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class Responder
  11. ">
  12. <meta name="generator" content="docfx 2.56.7.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. <meta property="docfx:navrel" content="../../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../../">
  20. </head>
  21. <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">Search Results for <span></span></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></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.Responder">
  73. <h1 id="Terminal_Gui_Responder" data-uid="Terminal.Gui.Responder" class="text-break">Class Responder
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Responder base class implemented by objects that want to participate on keyboard and mouse input.
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <div class="inheritance">
  80. <h5>Inheritance</h5>
  81. <div class="level0"><span class="xref">System.Object</span></div>
  82. <div class="level1"><span class="xref">Responder</span></div>
  83. <div class="level2"><a class="xref" href="Terminal.Gui.View.html">View</a></div>
  84. </div>
  85. <div classs="implements">
  86. <h5>Implements</h5>
  87. <div><span class="xref">System.IDisposable</span></div>
  88. </div>
  89. <div class="inheritedMembers">
  90. <h5>Inherited Members</h5>
  91. <div>
  92. <span class="xref">System.Object.Equals(System.Object)</span>
  93. </div>
  94. <div>
  95. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  96. </div>
  97. <div>
  98. <span class="xref">System.Object.GetHashCode()</span>
  99. </div>
  100. <div>
  101. <span class="xref">System.Object.GetType()</span>
  102. </div>
  103. <div>
  104. <span class="xref">System.Object.MemberwiseClone()</span>
  105. </div>
  106. <div>
  107. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  108. </div>
  109. <div>
  110. <span class="xref">System.Object.ToString()</span>
  111. </div>
  112. </div>
  113. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  114. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  115. <h5 id="Terminal_Gui_Responder_syntax">Syntax</h5>
  116. <div class="codewrapper">
  117. <pre><code class="lang-csharp hljs">public class Responder : IDisposable</code></pre>
  118. </div>
  119. <h3 id="properties">Properties
  120. </h3>
  121. <a id="Terminal_Gui_Responder_CanFocus_" data-uid="Terminal.Gui.Responder.CanFocus*"></a>
  122. <h4 id="Terminal_Gui_Responder_CanFocus" data-uid="Terminal.Gui.Responder.CanFocus">CanFocus</h4>
  123. <div class="markdown level1 summary">
  124. Gets or sets a value indicating whether this <a class="xref" href="Terminal.Gui.Responder.html">Responder</a> can focus.
  125. </div>
  126. <div class="markdown level1 conceptual"></div>
  127. <h5 class="decalaration">Declaration</h5>
  128. <div class="codewrapper">
  129. <pre><code class="lang-csharp hljs">public virtual bool CanFocus { get; set; }</code></pre>
  130. </div>
  131. <h5 class="propertyValue">Property Value</h5>
  132. <table class="table table-bordered table-striped table-condensed">
  133. <thead>
  134. <tr>
  135. <th>Type</th>
  136. <th>Description</th>
  137. </tr>
  138. </thead>
  139. <tbody>
  140. <tr>
  141. <td><span class="xref">System.Boolean</span></td>
  142. <td><code>true</code> if can focus; otherwise, <code>false</code>.</td>
  143. </tr>
  144. </tbody>
  145. </table>
  146. <a id="Terminal_Gui_Responder_HasFocus_" data-uid="Terminal.Gui.Responder.HasFocus*"></a>
  147. <h4 id="Terminal_Gui_Responder_HasFocus" data-uid="Terminal.Gui.Responder.HasFocus">HasFocus</h4>
  148. <div class="markdown level1 summary">
  149. Gets or sets a value indicating whether this <a class="xref" href="Terminal.Gui.Responder.html">Responder</a> has focus.
  150. </div>
  151. <div class="markdown level1 conceptual"></div>
  152. <h5 class="decalaration">Declaration</h5>
  153. <div class="codewrapper">
  154. <pre><code class="lang-csharp hljs">public virtual bool HasFocus { get; }</code></pre>
  155. </div>
  156. <h5 class="propertyValue">Property Value</h5>
  157. <table class="table table-bordered table-striped table-condensed">
  158. <thead>
  159. <tr>
  160. <th>Type</th>
  161. <th>Description</th>
  162. </tr>
  163. </thead>
  164. <tbody>
  165. <tr>
  166. <td><span class="xref">System.Boolean</span></td>
  167. <td><code>true</code> if has focus; otherwise, <code>false</code>.</td>
  168. </tr>
  169. </tbody>
  170. </table>
  171. <h3 id="methods">Methods
  172. </h3>
  173. <a id="Terminal_Gui_Responder_Dispose_" data-uid="Terminal.Gui.Responder.Dispose*"></a>
  174. <h4 id="Terminal_Gui_Responder_Dispose" data-uid="Terminal.Gui.Responder.Dispose">Dispose()</h4>
  175. <div class="markdown level1 summary">
  176. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resource.
  177. </div>
  178. <div class="markdown level1 conceptual"></div>
  179. <h5 class="decalaration">Declaration</h5>
  180. <div class="codewrapper">
  181. <pre><code class="lang-csharp hljs">public void Dispose()</code></pre>
  182. </div>
  183. <a id="Terminal_Gui_Responder_Dispose_" data-uid="Terminal.Gui.Responder.Dispose*"></a>
  184. <h4 id="Terminal_Gui_Responder_Dispose_System_Boolean_" data-uid="Terminal.Gui.Responder.Dispose(System.Boolean)">Dispose(Boolean)</h4>
  185. <div class="markdown level1 summary">
  186. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
  187. </div>
  188. <div class="markdown level1 conceptual"></div>
  189. <h5 class="decalaration">Declaration</h5>
  190. <div class="codewrapper">
  191. <pre><code class="lang-csharp hljs">protected virtual void Dispose(bool disposing)</code></pre>
  192. </div>
  193. <h5 class="parameters">Parameters</h5>
  194. <table class="table table-bordered table-striped table-condensed">
  195. <thead>
  196. <tr>
  197. <th>Type</th>
  198. <th>Name</th>
  199. <th>Description</th>
  200. </tr>
  201. </thead>
  202. <tbody>
  203. <tr>
  204. <td><span class="xref">System.Boolean</span></td>
  205. <td><span class="parametername">disposing</span></td>
  206. <td></td>
  207. </tr>
  208. </tbody>
  209. </table>
  210. <h5 id="Terminal_Gui_Responder_Dispose_System_Boolean__remarks">Remarks</h5>
  211. <div class="markdown level1 remarks">
  212. If disposing equals true, the method has been called directly
  213. or indirectly by a user&apos;s code. Managed and unmanaged resources
  214. can be disposed.
  215. If disposing equals false, the method has been called by the
  216. runtime from inside the finalizer and you should not reference
  217. other objects. Only unmanaged resources can be disposed.
  218. </div>
  219. <a id="Terminal_Gui_Responder_MouseEvent_" data-uid="Terminal.Gui.Responder.MouseEvent*"></a>
  220. <h4 id="Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.Responder.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  221. <div class="markdown level1 summary">
  222. Method invoked when a mouse event is generated
  223. </div>
  224. <div class="markdown level1 conceptual"></div>
  225. <h5 class="decalaration">Declaration</h5>
  226. <div class="codewrapper">
  227. <pre><code class="lang-csharp hljs">public virtual bool MouseEvent(MouseEvent mouseEvent)</code></pre>
  228. </div>
  229. <h5 class="parameters">Parameters</h5>
  230. <table class="table table-bordered table-striped table-condensed">
  231. <thead>
  232. <tr>
  233. <th>Type</th>
  234. <th>Name</th>
  235. <th>Description</th>
  236. </tr>
  237. </thead>
  238. <tbody>
  239. <tr>
  240. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  241. <td><span class="parametername">mouseEvent</span></td>
  242. <td>Contains the details about the mouse event.</td>
  243. </tr>
  244. </tbody>
  245. </table>
  246. <h5 class="returns">Returns</h5>
  247. <table class="table table-bordered table-striped table-condensed">
  248. <thead>
  249. <tr>
  250. <th>Type</th>
  251. <th>Description</th>
  252. </tr>
  253. </thead>
  254. <tbody>
  255. <tr>
  256. <td><span class="xref">System.Boolean</span></td>
  257. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  258. </tr>
  259. </tbody>
  260. </table>
  261. <a id="Terminal_Gui_Responder_OnEnter_" data-uid="Terminal.Gui.Responder.OnEnter*"></a>
  262. <h4 id="Terminal_Gui_Responder_OnEnter_Terminal_Gui_View_" data-uid="Terminal.Gui.Responder.OnEnter(Terminal.Gui.View)">OnEnter(View)</h4>
  263. <div class="markdown level1 summary">
  264. Method invoked when a view gets focus.
  265. </div>
  266. <div class="markdown level1 conceptual"></div>
  267. <h5 class="decalaration">Declaration</h5>
  268. <div class="codewrapper">
  269. <pre><code class="lang-csharp hljs">public virtual bool OnEnter(View view)</code></pre>
  270. </div>
  271. <h5 class="parameters">Parameters</h5>
  272. <table class="table table-bordered table-striped table-condensed">
  273. <thead>
  274. <tr>
  275. <th>Type</th>
  276. <th>Name</th>
  277. <th>Description</th>
  278. </tr>
  279. </thead>
  280. <tbody>
  281. <tr>
  282. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  283. <td><span class="parametername">view</span></td>
  284. <td>The view that is losing focus.</td>
  285. </tr>
  286. </tbody>
  287. </table>
  288. <h5 class="returns">Returns</h5>
  289. <table class="table table-bordered table-striped table-condensed">
  290. <thead>
  291. <tr>
  292. <th>Type</th>
  293. <th>Description</th>
  294. </tr>
  295. </thead>
  296. <tbody>
  297. <tr>
  298. <td><span class="xref">System.Boolean</span></td>
  299. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  300. </tr>
  301. </tbody>
  302. </table>
  303. <a id="Terminal_Gui_Responder_OnKeyDown_" data-uid="Terminal.Gui.Responder.OnKeyDown*"></a>
  304. <h4 id="Terminal_Gui_Responder_OnKeyDown_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Responder.OnKeyDown(Terminal.Gui.KeyEvent)">OnKeyDown(KeyEvent)</h4>
  305. <div class="markdown level1 summary">
  306. Method invoked when a key is pressed.
  307. </div>
  308. <div class="markdown level1 conceptual"></div>
  309. <h5 class="decalaration">Declaration</h5>
  310. <div class="codewrapper">
  311. <pre><code class="lang-csharp hljs">public virtual bool OnKeyDown(KeyEvent keyEvent)</code></pre>
  312. </div>
  313. <h5 class="parameters">Parameters</h5>
  314. <table class="table table-bordered table-striped table-condensed">
  315. <thead>
  316. <tr>
  317. <th>Type</th>
  318. <th>Name</th>
  319. <th>Description</th>
  320. </tr>
  321. </thead>
  322. <tbody>
  323. <tr>
  324. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  325. <td><span class="parametername">keyEvent</span></td>
  326. <td>Contains the details about the key that produced the event.</td>
  327. </tr>
  328. </tbody>
  329. </table>
  330. <h5 class="returns">Returns</h5>
  331. <table class="table table-bordered table-striped table-condensed">
  332. <thead>
  333. <tr>
  334. <th>Type</th>
  335. <th>Description</th>
  336. </tr>
  337. </thead>
  338. <tbody>
  339. <tr>
  340. <td><span class="xref">System.Boolean</span></td>
  341. <td>true if the event was handled</td>
  342. </tr>
  343. </tbody>
  344. </table>
  345. <a id="Terminal_Gui_Responder_OnKeyUp_" data-uid="Terminal.Gui.Responder.OnKeyUp*"></a>
  346. <h4 id="Terminal_Gui_Responder_OnKeyUp_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Responder.OnKeyUp(Terminal.Gui.KeyEvent)">OnKeyUp(KeyEvent)</h4>
  347. <div class="markdown level1 summary">
  348. Method invoked when a key is released.
  349. </div>
  350. <div class="markdown level1 conceptual"></div>
  351. <h5 class="decalaration">Declaration</h5>
  352. <div class="codewrapper">
  353. <pre><code class="lang-csharp hljs">public virtual bool OnKeyUp(KeyEvent keyEvent)</code></pre>
  354. </div>
  355. <h5 class="parameters">Parameters</h5>
  356. <table class="table table-bordered table-striped table-condensed">
  357. <thead>
  358. <tr>
  359. <th>Type</th>
  360. <th>Name</th>
  361. <th>Description</th>
  362. </tr>
  363. </thead>
  364. <tbody>
  365. <tr>
  366. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  367. <td><span class="parametername">keyEvent</span></td>
  368. <td>Contains the details about the key that produced the event.</td>
  369. </tr>
  370. </tbody>
  371. </table>
  372. <h5 class="returns">Returns</h5>
  373. <table class="table table-bordered table-striped table-condensed">
  374. <thead>
  375. <tr>
  376. <th>Type</th>
  377. <th>Description</th>
  378. </tr>
  379. </thead>
  380. <tbody>
  381. <tr>
  382. <td><span class="xref">System.Boolean</span></td>
  383. <td>true if the event was handled</td>
  384. </tr>
  385. </tbody>
  386. </table>
  387. <a id="Terminal_Gui_Responder_OnLeave_" data-uid="Terminal.Gui.Responder.OnLeave*"></a>
  388. <h4 id="Terminal_Gui_Responder_OnLeave_Terminal_Gui_View_" data-uid="Terminal.Gui.Responder.OnLeave(Terminal.Gui.View)">OnLeave(View)</h4>
  389. <div class="markdown level1 summary">
  390. Method invoked when a view loses focus.
  391. </div>
  392. <div class="markdown level1 conceptual"></div>
  393. <h5 class="decalaration">Declaration</h5>
  394. <div class="codewrapper">
  395. <pre><code class="lang-csharp hljs">public virtual bool OnLeave(View view)</code></pre>
  396. </div>
  397. <h5 class="parameters">Parameters</h5>
  398. <table class="table table-bordered table-striped table-condensed">
  399. <thead>
  400. <tr>
  401. <th>Type</th>
  402. <th>Name</th>
  403. <th>Description</th>
  404. </tr>
  405. </thead>
  406. <tbody>
  407. <tr>
  408. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  409. <td><span class="parametername">view</span></td>
  410. <td>The view that is getting focus.</td>
  411. </tr>
  412. </tbody>
  413. </table>
  414. <h5 class="returns">Returns</h5>
  415. <table class="table table-bordered table-striped table-condensed">
  416. <thead>
  417. <tr>
  418. <th>Type</th>
  419. <th>Description</th>
  420. </tr>
  421. </thead>
  422. <tbody>
  423. <tr>
  424. <td><span class="xref">System.Boolean</span></td>
  425. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  426. </tr>
  427. </tbody>
  428. </table>
  429. <a id="Terminal_Gui_Responder_OnMouseEnter_" data-uid="Terminal.Gui.Responder.OnMouseEnter*"></a>
  430. <h4 id="Terminal_Gui_Responder_OnMouseEnter_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.Responder.OnMouseEnter(Terminal.Gui.MouseEvent)">OnMouseEnter(MouseEvent)</h4>
  431. <div class="markdown level1 summary">
  432. Method invoked when a mouse event is generated for the first time.
  433. </div>
  434. <div class="markdown level1 conceptual"></div>
  435. <h5 class="decalaration">Declaration</h5>
  436. <div class="codewrapper">
  437. <pre><code class="lang-csharp hljs">public virtual bool OnMouseEnter(MouseEvent mouseEvent)</code></pre>
  438. </div>
  439. <h5 class="parameters">Parameters</h5>
  440. <table class="table table-bordered table-striped table-condensed">
  441. <thead>
  442. <tr>
  443. <th>Type</th>
  444. <th>Name</th>
  445. <th>Description</th>
  446. </tr>
  447. </thead>
  448. <tbody>
  449. <tr>
  450. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  451. <td><span class="parametername">mouseEvent</span></td>
  452. <td></td>
  453. </tr>
  454. </tbody>
  455. </table>
  456. <h5 class="returns">Returns</h5>
  457. <table class="table table-bordered table-striped table-condensed">
  458. <thead>
  459. <tr>
  460. <th>Type</th>
  461. <th>Description</th>
  462. </tr>
  463. </thead>
  464. <tbody>
  465. <tr>
  466. <td><span class="xref">System.Boolean</span></td>
  467. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  468. </tr>
  469. </tbody>
  470. </table>
  471. <a id="Terminal_Gui_Responder_OnMouseLeave_" data-uid="Terminal.Gui.Responder.OnMouseLeave*"></a>
  472. <h4 id="Terminal_Gui_Responder_OnMouseLeave_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.Responder.OnMouseLeave(Terminal.Gui.MouseEvent)">OnMouseLeave(MouseEvent)</h4>
  473. <div class="markdown level1 summary">
  474. Method invoked when a mouse event is generated for the last time.
  475. </div>
  476. <div class="markdown level1 conceptual"></div>
  477. <h5 class="decalaration">Declaration</h5>
  478. <div class="codewrapper">
  479. <pre><code class="lang-csharp hljs">public virtual bool OnMouseLeave(MouseEvent mouseEvent)</code></pre>
  480. </div>
  481. <h5 class="parameters">Parameters</h5>
  482. <table class="table table-bordered table-striped table-condensed">
  483. <thead>
  484. <tr>
  485. <th>Type</th>
  486. <th>Name</th>
  487. <th>Description</th>
  488. </tr>
  489. </thead>
  490. <tbody>
  491. <tr>
  492. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  493. <td><span class="parametername">mouseEvent</span></td>
  494. <td></td>
  495. </tr>
  496. </tbody>
  497. </table>
  498. <h5 class="returns">Returns</h5>
  499. <table class="table table-bordered table-striped table-condensed">
  500. <thead>
  501. <tr>
  502. <th>Type</th>
  503. <th>Description</th>
  504. </tr>
  505. </thead>
  506. <tbody>
  507. <tr>
  508. <td><span class="xref">System.Boolean</span></td>
  509. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  510. </tr>
  511. </tbody>
  512. </table>
  513. <a id="Terminal_Gui_Responder_ProcessColdKey_" data-uid="Terminal.Gui.Responder.ProcessColdKey*"></a>
  514. <h4 id="Terminal_Gui_Responder_ProcessColdKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Responder.ProcessColdKey(Terminal.Gui.KeyEvent)">ProcessColdKey(KeyEvent)</h4>
  515. <div class="markdown level1 summary">
  516. This method can be overwritten by views that
  517. want to provide accelerator functionality
  518. (Alt-key for example), but without
  519. interefering with normal ProcessKey behavior.
  520. </div>
  521. <div class="markdown level1 conceptual"></div>
  522. <h5 class="decalaration">Declaration</h5>
  523. <div class="codewrapper">
  524. <pre><code class="lang-csharp hljs">public virtual bool ProcessColdKey(KeyEvent keyEvent)</code></pre>
  525. </div>
  526. <h5 class="parameters">Parameters</h5>
  527. <table class="table table-bordered table-striped table-condensed">
  528. <thead>
  529. <tr>
  530. <th>Type</th>
  531. <th>Name</th>
  532. <th>Description</th>
  533. </tr>
  534. </thead>
  535. <tbody>
  536. <tr>
  537. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  538. <td><span class="parametername">keyEvent</span></td>
  539. <td>Contains the details about the key that produced the event.</td>
  540. </tr>
  541. </tbody>
  542. </table>
  543. <h5 class="returns">Returns</h5>
  544. <table class="table table-bordered table-striped table-condensed">
  545. <thead>
  546. <tr>
  547. <th>Type</th>
  548. <th>Description</th>
  549. </tr>
  550. </thead>
  551. <tbody>
  552. <tr>
  553. <td><span class="xref">System.Boolean</span></td>
  554. <td></td>
  555. </tr>
  556. </tbody>
  557. </table>
  558. <h5 id="Terminal_Gui_Responder_ProcessColdKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  559. <div class="markdown level1 remarks">
  560. <p>
  561. After keys are sent to the subviews on the
  562. current view, all the view are
  563. processed and the key is passed to the views
  564. to allow some of them to process the keystroke
  565. as a cold-key. </p>
  566. <p>
  567. This functionality is used, for example, by
  568. default buttons to act on the enter key.
  569. Processing this as a hot-key would prevent
  570. non-default buttons from consuming the enter
  571. keypress when they have the focus.
  572. </p>
  573. </div>
  574. <a id="Terminal_Gui_Responder_ProcessHotKey_" data-uid="Terminal.Gui.Responder.ProcessHotKey*"></a>
  575. <h4 id="Terminal_Gui_Responder_ProcessHotKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Responder.ProcessHotKey(Terminal.Gui.KeyEvent)">ProcessHotKey(KeyEvent)</h4>
  576. <div class="markdown level1 summary">
  577. This method can be overwritten by view that
  578. want to provide accelerator functionality
  579. (Alt-key for example).
  580. </div>
  581. <div class="markdown level1 conceptual"></div>
  582. <h5 class="decalaration">Declaration</h5>
  583. <div class="codewrapper">
  584. <pre><code class="lang-csharp hljs">public virtual bool ProcessHotKey(KeyEvent kb)</code></pre>
  585. </div>
  586. <h5 class="parameters">Parameters</h5>
  587. <table class="table table-bordered table-striped table-condensed">
  588. <thead>
  589. <tr>
  590. <th>Type</th>
  591. <th>Name</th>
  592. <th>Description</th>
  593. </tr>
  594. </thead>
  595. <tbody>
  596. <tr>
  597. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  598. <td><span class="parametername">kb</span></td>
  599. <td></td>
  600. </tr>
  601. </tbody>
  602. </table>
  603. <h5 class="returns">Returns</h5>
  604. <table class="table table-bordered table-striped table-condensed">
  605. <thead>
  606. <tr>
  607. <th>Type</th>
  608. <th>Description</th>
  609. </tr>
  610. </thead>
  611. <tbody>
  612. <tr>
  613. <td><span class="xref">System.Boolean</span></td>
  614. <td></td>
  615. </tr>
  616. </tbody>
  617. </table>
  618. <h5 id="Terminal_Gui_Responder_ProcessHotKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  619. <div class="markdown level1 remarks">
  620. <p>
  621. Before keys are sent to the subview on the
  622. current view, all the views are
  623. processed and the key is passed to the widgets
  624. to allow some of them to process the keystroke
  625. as a hot-key. </p>
  626. <p>
  627. For example, if you implement a button that
  628. has a hotkey ok &quot;o&quot;, you would catch the
  629. combination Alt-o here. If the event is
  630. caught, you must return true to stop the
  631. keystroke from being dispatched to other
  632. views.
  633. </p>
  634. </div>
  635. <a id="Terminal_Gui_Responder_ProcessKey_" data-uid="Terminal.Gui.Responder.ProcessKey*"></a>
  636. <h4 id="Terminal_Gui_Responder_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Responder.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  637. <div class="markdown level1 summary">
  638. If the view is focused, gives the view a
  639. chance to process the keystroke.
  640. </div>
  641. <div class="markdown level1 conceptual"></div>
  642. <h5 class="decalaration">Declaration</h5>
  643. <div class="codewrapper">
  644. <pre><code class="lang-csharp hljs">public virtual bool ProcessKey(KeyEvent keyEvent)</code></pre>
  645. </div>
  646. <h5 class="parameters">Parameters</h5>
  647. <table class="table table-bordered table-striped table-condensed">
  648. <thead>
  649. <tr>
  650. <th>Type</th>
  651. <th>Name</th>
  652. <th>Description</th>
  653. </tr>
  654. </thead>
  655. <tbody>
  656. <tr>
  657. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  658. <td><span class="parametername">keyEvent</span></td>
  659. <td>Contains the details about the key that produced the event.</td>
  660. </tr>
  661. </tbody>
  662. </table>
  663. <h5 class="returns">Returns</h5>
  664. <table class="table table-bordered table-striped table-condensed">
  665. <thead>
  666. <tr>
  667. <th>Type</th>
  668. <th>Description</th>
  669. </tr>
  670. </thead>
  671. <tbody>
  672. <tr>
  673. <td><span class="xref">System.Boolean</span></td>
  674. <td></td>
  675. </tr>
  676. </tbody>
  677. </table>
  678. <h5 id="Terminal_Gui_Responder_ProcessKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  679. <div class="markdown level1 remarks">
  680. <p>
  681. Views can override this method if they are
  682. interested in processing the given keystroke.
  683. If they consume the keystroke, they must
  684. return true to stop the keystroke from being
  685. processed by other widgets or consumed by the
  686. widget engine. If they return false, the
  687. keystroke will be passed using the ProcessColdKey
  688. method to other views to process.
  689. </p>
  690. <p>
  691. The View implementation does nothing but return false,
  692. so it is not necessary to call base.ProcessKey if you
  693. derive directly from View, but you should if you derive
  694. other View subclasses.
  695. </p>
  696. </div>
  697. <h3 id="implements">Implements</h3>
  698. <div>
  699. <span class="xref">System.IDisposable</span>
  700. </div>
  701. </article>
  702. </div>
  703. <div class="hidden-sm col-md-2" role="complementary">
  704. <div class="sideaffix">
  705. <div class="contribution">
  706. <ul class="nav">
  707. </ul>
  708. </div>
  709. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  710. <h5>In This Article</h5>
  711. <div></div>
  712. </nav>
  713. </div>
  714. </div>
  715. </div>
  716. </div>
  717. <footer>
  718. <div class="grad-bottom"></div>
  719. <div class="footer">
  720. <div class="container">
  721. <span class="pull-right">
  722. <a href="#top">Back to top</a>
  723. </span>
  724. <span>Generated by <strong>DocFX</strong></span>
  725. </div>
  726. </div>
  727. </footer>
  728. </div>
  729. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  730. <script type="text/javascript" src="../../styles/docfx.js"></script>
  731. <script type="text/javascript" src="../../styles/main.js"></script>
  732. </body>
  733. </html>