UNPKG

89.2 kBHTMLView Raw
1<!DOCTYPE html>
2
3<html lang="en">
4<head>
5 <meta charset="utf-8">
6 <meta name="viewport" content="width=device-width">
7 <title>CrossBrowdy API documentation [printable] Namespace: CB_Keyboard</title>
8
9 <!--[if lt IE 9]>
10 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11 <![endif]-->
12 <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
13
14 <link type="text/css" rel="stylesheet" href="styles/site.yeti.css">
15
16</head>
17
18<body style="min-width:800px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
19
20<div class="navbar navbar-default navbar-fixed-top ">
21<div class="container">
22 <div class="navbar-header">
23 <a class="navbar-brand" href="index.html">CrossBrowdy API documentation [printable]</a>
24 <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
25 <span class="icon-bar"></span>
26 <span class="icon-bar"></span>
27 <span class="icon-bar"></span>
28 </button>
29 </div>
30 <div class="navbar-collapse collapse" id="topNavigation">
31 <ul class="nav navbar-nav">
32
33 <li class="dropdown">
34 <a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b class="caret"></b></a>
35 <ul class="dropdown-menu inline">
36 <li><a href="CB_Arrays.html">CB_Arrays</a></li><li><a href="CB_AudioDetector.html">CB_AudioDetector</a></li><li><a href="CB_Client.html">CB_Client</a></li><li><a href="CB_Collisions.html">CB_Collisions</a></li><li><a href="CB_Configuration.html">CB_Configuration</a></li><li><a href="CB_Configuration.CrossBase.html">CB_Configuration.CrossBase</a></li><li><a href="CB_Configuration.CrossBrowdy.html">CB_Configuration.CrossBrowdy</a></li><li><a href="CB_Controllers.html">CB_Controllers</a></li><li><a href="CB_Controllers_Proprietary.html">CB_Controllers_Proprietary</a></li><li><a href="CB_Controllers_Proprietary.WII.html">CB_Controllers_Proprietary.WII</a></li><li><a href="CB_Controllers_Proprietary.WII_U.html">CB_Controllers_Proprietary.WII_U</a></li><li><a href="CB_Device.html">CB_Device</a></li><li><a href="CB_Device.AmbientLight.html">CB_Device.AmbientLight</a></li><li><a href="CB_Device.Battery.html">CB_Device.Battery</a></li><li><a href="CB_Device.Location.html">CB_Device.Location</a></li><li><a href="CB_Device.Motion.html">CB_Device.Motion</a></li><li><a href="CB_Device.Orientation.html">CB_Device.Orientation</a></li><li><a href="CB_Device.Proximity.html">CB_Device.Proximity</a></li><li><a href="CB_Device.Vibration.html">CB_Device.Vibration</a></li><li><a href="CB_Elements.html">CB_Elements</a></li><li><a href="CB_Events.html">CB_Events</a></li><li><a href="CB_Keyboard.html">CB_Keyboard</a></li><li><a href="CB_Keyboard.chars.html">CB_Keyboard.chars</a></li><li><a href="CB_Keyboard.extended.html">CB_Keyboard.extended</a></li><li><a href="CB_Keyboard.keys.html">CB_Keyboard.keys</a></li><li><a href="CB_Modules.html">CB_Modules</a></li><li><a href="CB_Mouse.html">CB_Mouse</a></li><li><a href="CB_Mouse.CursorImage.html">CB_Mouse.CursorImage</a></li><li><a href="CB_Net.html">CB_Net</a></li><li><a href="CB_Net.Fetch.html">CB_Net.Fetch</a></li><li><a href="CB_Net.REST.html">CB_Net.REST</a></li><li><a href="CB_Net.Sockets.html">CB_Net.Sockets</a></li><li><a href="CB_Net.Sockets.SockJS.html">CB_Net.Sockets.SockJS</a></li><li><a href="CB_Net.XHR.html">CB_Net.XHR</a></li><li><a href="CB_Pointer.html">CB_Pointer</a></li><li><a href="CB_Screen.html">CB_Screen</a></li><li><a href="CB_Speaker.html">CB_Speaker</a></li><li><a href="CB_Touch.html">CB_Touch</a></li><li><a href="CB_baseSymbols.html">CB_baseSymbols</a></li>
37 </ul>
38 </li>
39
40 <li class="dropdown">
41 <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
42 <ul class="dropdown-menu inline">
43 <li><a href="CB_AudioFile.html">CB_AudioFile</a></li><li><a href="CB_AudioFileCache.html">CB_AudioFileCache</a></li><li><a href="CB_AudioFileSprites.html">CB_AudioFileSprites</a></li><li><a href="CB_AudioFileSpritesPool.html">CB_AudioFileSpritesPool</a></li><li><a href="CB_AudioFile_API.AAPI.html">CB_AudioFile_API.AAPI</a></li><li><a href="CB_AudioFile_API.ACMP.html">CB_AudioFile_API.ACMP</a></li><li><a href="CB_AudioFile_API.SM2.html">CB_AudioFile_API.SM2</a></li><li><a href="CB_AudioFile_API.WAAPI.html">CB_AudioFile_API.WAAPI</a></li><li><a href="CB_Canvas.html">CB_Canvas</a></li><li><a href="CB_GraphicSprites.html">CB_GraphicSprites</a></li><li><a href="CB_GraphicSpritesScene.html">CB_GraphicSpritesScene</a></li>
44 </ul>
45 </li>
46
47 <li class="dropdown">
48 <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
49 <ul class="dropdown-menu inline">
50 <li><a href="global.html#CB_BASE_NAME">CB_BASE_NAME</a></li><li><a href="global.html#CB_CREDITS_DEFAULT">CB_CREDITS_DEFAULT</a></li><li><a href="global.html#CB_NAME">CB_NAME</a></li><li><a href="global.html#CB_OPTIONS">CB_OPTIONS</a></li><li><a href="global.html#CB_VERSION">CB_VERSION</a></li><li><a href="global.html#CB_addCredits">CB_addCredits</a></li><li><a href="global.html#CB_baseToBase">CB_baseToBase</a></li><li><a href="global.html#CB_baseToInt">CB_baseToInt</a></li><li><a href="global.html#CB_br2nl">CB_br2nl</a></li><li><a href="global.html#CB_brToNl">CB_brToNl</a></li><li><a href="global.html#CB_combineArraysOrObjects">CB_combineArraysOrObjects</a></li><li><a href="global.html#CB_combineAutomatically">CB_combineAutomatically</a></li><li><a href="global.html#CB_combineJSON">CB_combineJSON</a></li><li><a href="global.html#CB_combineURIParameters">CB_combineURIParameters</a></li><li><a href="global.html#CB_combineURLParameters">CB_combineURLParameters</a></li><li><a href="global.html#CB_console">CB_console</a></li><li><a href="global.html#CB_copyObject">CB_copyObject</a></li><li><a href="global.html#CB_countDecimalDigits">CB_countDecimalDigits</a></li><li><a href="global.html#CB_countDecimalPart">CB_countDecimalPart</a></li><li><a href="global.html#CB_countDecimals">CB_countDecimals</a></li><li><a href="global.html#CB_countIntegerDigits">CB_countIntegerDigits</a></li><li><a href="global.html#CB_countIntegerPart">CB_countIntegerPart</a></li><li><a href="global.html#CB_credits">CB_credits</a></li><li><a href="global.html#CB_forEach">CB_forEach</a></li><li><a href="global.html#CB_forceString">CB_forceString</a></li><li><a href="global.html#CB_getBase64StringObject">CB_getBase64StringObject</a></li><li><a href="global.html#CB_getCookie">CB_getCookie</a></li><li><a href="global.html#CB_getDatum">CB_getDatum</a></li><li><a href="global.html#CB_getJSONPropertyValue">CB_getJSONPropertyValue</a></li><li><a href="global.html#CB_getLZStringObject">CB_getLZStringObject</a></li><li><a href="global.html#CB_getValueIndex">CB_getValueIndex</a></li><li><a href="global.html#CB_getValuePath">CB_getValuePath</a></li><li><a href="global.html#CB_includeJSFile">CB_includeJSFile</a></li><li><a href="global.html#CB_indexOf">CB_indexOf</a></li><li><a href="global.html#CB_init">CB_init</a></li><li><a href="global.html#CB_intToBase">CB_intToBase</a></li><li><a href="global.html#CB_isArray">CB_isArray</a></li><li><a href="global.html#CB_isEmail">CB_isEmail</a></li><li><a href="global.html#CB_isFileLocal">CB_isFileLocal</a></li><li><a href="global.html#CB_isString">CB_isString</a></li><li><a href="global.html#CB_lastIndexOf">CB_lastIndexOf</a></li><li><a href="global.html#CB_ltrim">CB_ltrim</a></li><li><a href="global.html#CB_nl2br">CB_nl2br</a></li><li><a href="global.html#CB_nlToBr">CB_nlToBr</a></li><li><a href="global.html#CB_numberFormat">CB_numberFormat</a></li><li><a href="global.html#CB_numberOfDecimalDigits">CB_numberOfDecimalDigits</a></li><li><a href="global.html#CB_numberOfDecimals">CB_numberOfDecimals</a></li><li><a href="global.html#CB_numberOfIntegerDigits">CB_numberOfIntegerDigits</a></li><li><a href="global.html#CB_parseJSON">CB_parseJSON</a></li><li><a href="global.html#CB_parseString">CB_parseString</a></li><li><a href="global.html#CB_regularExpressionString">CB_regularExpressionString</a></li><li><a href="global.html#CB_renderString">CB_renderString</a></li><li><a href="global.html#CB_replaceAll">CB_replaceAll</a></li><li><a href="global.html#CB_rtrim">CB_rtrim</a></li><li><a href="global.html#CB_scriptPath">CB_scriptPath</a></li><li><a href="global.html#CB_scriptPathCalculate">CB_scriptPathCalculate</a></li><li><a href="global.html#CB_setCookie">CB_setCookie</a></li><li><a href="global.html#CB_setDatum">CB_setDatum</a></li><li><a href="global.html#CB_sizeOf">CB_sizeOf</a></li><li><a href="global.html#CB_sizeof">CB_sizeof</a></li><li><a href="global.html#CB_stringifyJSON">CB_stringifyJSON</a></li><li><a href="global.html#CB_symmetricCall">CB_symmetricCall</a></li><li><a href="global.html#CB_symmetricCallClear">CB_symmetricCallClear</a></li><li><a href="global.html#CB_this">CB_this</a></li><li><a href="global.html#CB_trim">CB_trim</a></li>
51 </ul>
52 </li>
53
54 </ul>
55
56 <div class="col-sm-3 col-md-3">
57 <form class="navbar-form" role="search">
58 <div class="input-group">
59 <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
60 <div class="input-group-btn">
61 <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
62 </div>
63 </div>
64 </form>
65 </div>
66
67 </div>
68
69</div>
70</div>
71
72
73<div class="container" id="toc-content" style="width:100%;">
74<div class="row" style="width:100%;">
75
76
77 <div class="col-md-8" style="width:85%;">
78
79 <div id="main">
80
81
82
83 <h1 class="page-title">Namespace: CB_Keyboard</h1>
84
85<section>
86
87<header>
88
89 <h2>
90 CB_Keyboard
91 </h2>
92
93
94</header>
95
96
97<article>
98 <div class="container-overview">
99
100
101 <div class="description"><p>Static class to manage the keyboard and other input devices that generate key codes. It will return itself if it is tried to be instantiated.</p></div>
102
103
104
105<dl class="details">
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
136 <dd class="tag-source">
137 <ul class="dummy">
138 <li>
139 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
140 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-11">line 11</a>
141 </li>
142 </ul>
143 </dd>
144
145
146
147
148
149
150
151</dl>
152
153
154
155
156 </div>
157
158
159
160
161
162
163
164
165
166
167 <h3 class="subsection-title">Namespaces</h3>
168
169 <dl>
170 <dt><a href="namespaces.html#CB_Keyboard.chars"><a href="CB_Keyboard.chars.html">chars</a></a></dt>
171 <dd></dd>
172
173 <dt><a href="namespaces.html#CB_Keyboard.extended"><a href="CB_Keyboard.extended.html">extended</a></a></dt>
174 <dd></dd>
175
176 <dt><a href="namespaces.html#CB_Keyboard.keys"><a href="CB_Keyboard.keys.html">keys</a></a></dt>
177 <dd></dd>
178 </dl>
179
180
181
182 <h3 class="subsection-title">Members</h3>
183
184 <dl>
185
186<hr>
187<dt class="name" id=".keysDown">
188 <h4 id=".keysDown"><span class="type-signature">&lt;static, readonly> </span>keysDown<span class="type-signature"> :Object</span></h4>
189
190
191</dt>
192<dd>
193
194 <div class="description">
195 <p>Object that will store the status for each key detected, using the key code as index and a boolean as their value (true when down or false when released).</p>
196 </div>
197
198
199
200 <h5>Type:</h5>
201 <ul>
202 <li>
203
204<span class="param-type">Object</span>
205
206
207
208 </li>
209 </ul>
210
211
212
213<dl class="details">
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239 <dt class="tag-default method-doc-label method-doc-details-label">Default Value:</dt>
240 <dd class="tag-default">
241 <ul class="dummy">
242 <li>{}</li>
243 </ul>
244 </dd>
245
246
247
248
249
250 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
251 <dd class="tag-source">
252 <ul class="dummy">
253 <li>
254 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
255 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-26">line 26</a>
256 </li>
257 </ul>
258 </dd>
259
260
261
262
263
264
265
266</dl>
267
268
269
270</dd>
271
272
273
274<hr>
275<dt class="name" id=".keysPressed">
276 <h4 id=".keysPressed"><span class="type-signature">&lt;static, readonly> </span>keysPressed<span class="type-signature"> :array</span></h4>
277
278
279</dt>
280<dd>
281
282 <div class="description">
283 <p>Array with the codes of the keys pressed recently (it will be cleared after the chosen milliseconds set with the <a href="CB_Keyboard.html#.setKeysPressedExpiration"><code>CB_Keyboard.setKeysPressedExpiration</code></a> function).</p>
284 </div>
285
286
287
288 <h5>Type:</h5>
289 <ul>
290 <li>
291
292<span class="param-type">array</span>
293
294
295
296 </li>
297 </ul>
298
299
300
301<dl class="details">
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327 <dt class="tag-default method-doc-label method-doc-details-label">Default Value:</dt>
328 <dd class="tag-default">
329 <ul class="dummy">
330 <li>[]</li>
331 </ul>
332 </dd>
333
334
335
336
337
338 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
339 <dd class="tag-source">
340 <ul class="dummy">
341 <li>
342 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
343 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-36">line 36</a>
344 </li>
345 </ul>
346 </dd>
347
348
349
350
351
352
353
354</dl>
355
356
357
358</dd>
359
360
361
362<hr>
363<dt class="name" id=".typedString">
364 <h4 id=".typedString"><span class="type-signature">&lt;static, readonly> </span>typedString<span class="type-signature"> :string</span></h4>
365
366
367</dt>
368<dd>
369
370 <div class="description">
371 <p>Stores the string typed recently (it will be cleared after the chosen milliseconds set with the <a href="CB_Keyboard.html#.setTypedStringExpiration"><code>CB_Keyboard.setTypedStringExpiration</code></a> function).</p>
372 </div>
373
374
375
376 <h5>Type:</h5>
377 <ul>
378 <li>
379
380<span class="param-type">string</span>
381
382
383
384 </li>
385 </ul>
386
387
388
389<dl class="details">
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
420 <dd class="tag-source">
421 <ul class="dummy">
422 <li>
423 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
424 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-58">line 58</a>
425 </li>
426 </ul>
427 </dd>
428
429
430
431
432
433
434
435</dl>
436
437
438
439</dd>
440
441
442
443<hr>
444<dt class="name" id=".typedStringCodes">
445 <h4 id=".typedStringCodes"><span class="type-signature">&lt;static, readonly> </span>typedStringCodes<span class="type-signature"> :array</span></h4>
446
447
448</dt>
449<dd>
450
451 <div class="description">
452 <p>Array with the codes of the string typed recently (it will be cleared after the chosen milliseconds set with the <a href="CB_Keyboard.html#.setTypedStringExpiration"><code>CB_Keyboard.setTypedStringExpiration</code></a> function).</p>
453 </div>
454
455
456
457 <h5>Type:</h5>
458 <ul>
459 <li>
460
461<span class="param-type">array</span>
462
463
464
465 </li>
466 </ul>
467
468
469
470<dl class="details">
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496 <dt class="tag-default method-doc-label method-doc-details-label">Default Value:</dt>
497 <dd class="tag-default">
498 <ul class="dummy">
499 <li>[]</li>
500 </ul>
501 </dd>
502
503
504
505
506
507 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
508 <dd class="tag-source">
509 <ul class="dummy">
510 <li>
511 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
512 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-48">line 48</a>
513 </li>
514 </ul>
515 </dd>
516
517
518
519
520
521
522
523</dl>
524
525
526
527</dd>
528
529 </dl>
530
531
532
533 <h3 class="subsection-title">Methods</h3>
534
535 <dl>
536
537<hr>
538<dt>
539 <h4 class="name" id=".clearKeysDown"><span class="type-signature">&lt;static> </span>clearKeysDown<span class="signature">(keepPressed)</span><span class="type-signature"></span></h4>
540
541
542</dt>
543<dd>
544
545
546 <div class="description">
547 <p>Clears (empties totally or partially) the <a href="CB_Keyboard.html#.keysDown"><code>CB_Keyboard.keysDown</code></a> object which contains the detected keys pressed or released.</p>
548 </div>
549
550
551
552
553
554
555
556
557 <h5>Parameters:</h5>
558
559
560<table class="params table table-striped">
561 <thead>
562 <tr>
563
564 <th style="width:12%; min-width:110px;">Name</th>
565
566
567 <th style="width:12%; min-width:110px;">Type</th>
568
569
570
571
572
573 <th class="last" style="min-width:310px;">Description</th>
574 </tr>
575 </thead>
576
577 <tbody>
578
579
580 <tr>
581
582 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>keepPressed</code></td>
583
584
585 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
586
587
588<span class="param-type">boolean</span>
589
590
591
592
593 </td>
594
595
596
597
598
599 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to true, it will keep the pressed keys.</p></td>
600 </tr>
601
602
603 </tbody>
604</table>
605
606
607
608
609<dl class="details">
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
640 <dd class="tag-source">
641 <ul class="dummy">
642 <li>
643 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
644 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3207">line 3207</a>
645 </li>
646 </ul>
647 </dd>
648
649
650
651
652
653
654
655</dl>
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671</dd>
672
673
674
675<hr>
676<dt>
677 <h4 class="name" id=".clearKeysPressed"><span class="type-signature">&lt;static> </span>clearKeysPressed<span class="signature">(keepPressed)</span><span class="type-signature"></span></h4>
678
679
680</dt>
681<dd>
682
683
684 <div class="description">
685 <p>Clears (empties totally or partially) the <a href="CB_Keyboard.html#.keysPressed"><code>CB_Keyboard.keysPressed</code></a> array which contains the key codes pressed recently.</p>
686 </div>
687
688
689
690
691
692
693
694
695 <h5>Parameters:</h5>
696
697
698<table class="params table table-striped">
699 <thead>
700 <tr>
701
702 <th style="width:12%; min-width:110px;">Name</th>
703
704
705 <th style="width:12%; min-width:110px;">Type</th>
706
707
708
709
710
711 <th class="last" style="min-width:310px;">Description</th>
712 </tr>
713 </thead>
714
715 <tbody>
716
717
718 <tr>
719
720 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>keepPressed</code></td>
721
722
723 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
724
725
726<span class="param-type">boolean</span>
727
728
729
730
731 </td>
732
733
734
735
736
737 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to true, it will keep the pressed keys (taken from the <a href="CB_Keyboard.html#.keysDown"><code>CB_Keyboard.keysDown</code></a> object).</p></td>
738 </tr>
739
740
741 </tbody>
742</table>
743
744
745
746
747<dl class="details">
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
778 <dd class="tag-source">
779 <ul class="dummy">
780 <li>
781 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
782 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3315">line 3315</a>
783 </li>
784 </ul>
785 </dd>
786
787
788
789
790
791
792
793</dl>
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809</dd>
810
811
812
813<hr>
814<dt>
815 <h4 class="name" id=".clearTypedString"><span class="type-signature">&lt;static> </span>clearTypedString<span class="signature">(keepPressed)</span><span class="type-signature"></span></h4>
816
817
818</dt>
819<dd>
820
821
822 <div class="description">
823 <p>Clears (empties totally or partially) the <a href="CB_Keyboard.html#.typedString"><code>CB_Keyboard.typedString</code></a> string and the <a href="CB_Keyboard.html#.typedStringCodes"><code>CB_Keyboard.typedStringCodes</code></a> array.</p>
824 </div>
825
826
827
828
829
830
831
832
833 <h5>Parameters:</h5>
834
835
836<table class="params table table-striped">
837 <thead>
838 <tr>
839
840 <th style="width:12%; min-width:110px;">Name</th>
841
842
843 <th style="width:12%; min-width:110px;">Type</th>
844
845
846
847
848
849 <th class="last" style="min-width:310px;">Description</th>
850 </tr>
851 </thead>
852
853 <tbody>
854
855
856 <tr>
857
858 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>keepPressed</code></td>
859
860
861 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
862
863
864<span class="param-type">boolean</span>
865
866
867
868
869 </td>
870
871
872
873
874
875 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set to true, it will keep the values belonging to the currently-pressed keys (taken from the <a href="CB_Keyboard.html#.keysDown"><code>CB_Keyboard.keysDown</code></a> object).</p></td>
876 </tr>
877
878
879 </tbody>
880</table>
881
882
883
884
885<dl class="details">
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
916 <dd class="tag-source">
917 <ul class="dummy">
918 <li>
919 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
920 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3434">line 3434</a>
921 </li>
922 </ul>
923 </dd>
924
925
926
927
928
929
930
931</dl>
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947</dd>
948
949
950
951<hr>
952<dt>
953 <h4 class="name" id=".getKeyCode"><span class="type-signature">&lt;static> </span>getKeyCode<span class="signature">(e [, avoidNormalize])</span><span class="type-signature"> &rarr; {integer}</span></h4>
954
955
956</dt>
957<dd>
958
959
960 <div class="description">
961 <p>Returns the key code that is contained in the given <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent">keyboard event</a>.</p>
962 </div>
963
964
965
966
967
968
969
970
971 <h5>Parameters:</h5>
972
973
974<table class="params table table-striped">
975 <thead>
976 <tr>
977
978 <th style="width:12%; min-width:110px;">Name</th>
979
980
981 <th style="width:12%; min-width:110px;">Type</th>
982
983
984 <th style="width:12%; min-width:110px;">Argument</th>
985
986
987
988 <th style="width:12%; min-width:110px;">Default</th>
989
990
991 <th class="last" style="min-width:310px;">Description</th>
992 </tr>
993 </thead>
994
995 <tbody>
996
997
998 <tr>
999
1000 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>e</code></td>
1001
1002
1003 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1004
1005
1006<span class="param-type">Event</span>
1007
1008
1009
1010
1011 </td>
1012
1013
1014 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1015
1016
1017
1018
1019
1020 </td>
1021
1022
1023
1024 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1025
1026 </td>
1027
1028
1029 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent">Keyboard event</a> object.</p></td>
1030 </tr>
1031
1032
1033
1034 <tr>
1035
1036 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>avoidNormalize</code></td>
1037
1038
1039 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1040
1041
1042<span class="param-type">boolean</span>
1043
1044
1045
1046
1047 </td>
1048
1049
1050 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1051
1052 &lt;optional><br>
1053
1054
1055
1056
1057
1058 </td>
1059
1060
1061
1062 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1063
1064 false
1065
1066 </td>
1067
1068
1069 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is not set to true, it will call the <a href="CB_Events.html#.normalize"><code>CB_Events.normalize</code></a> function internally before.</p></td>
1070 </tr>
1071
1072
1073 </tbody>
1074</table>
1075
1076
1077
1078
1079<dl class="details">
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1110 <dd class="tag-source">
1111 <ul class="dummy">
1112 <li>
1113 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
1114 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3159">line 3159</a>
1115 </li>
1116 </ul>
1117 </dd>
1118
1119
1120
1121
1122
1123
1124
1125 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
1126 <dd class="tag-todo">
1127 <ul>
1128 <li>Have in mind that <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode">keyCode</a> is deprecated.</li>
1129 </ul>
1130 </dd>
1131
1132</dl>
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146 <h5>Returns:</h5>
1147
1148
1149<div class="param-desc">
1150 <p>Returns the key code.</p>
1151</div>
1152
1153
1154
1155<dl>
1156 <dt>
1157 Type
1158 </dt>
1159 <dd>
1160
1161<span class="param-type">integer</span>
1162
1163
1164
1165 </dd>
1166</dl>
1167
1168
1169
1170
1171
1172</dd>
1173
1174
1175
1176<hr>
1177<dt>
1178 <h4 class="name" id=".getKeysDown"><span class="type-signature">&lt;static> </span>getKeysDown<span class="signature">()</span><span class="type-signature"> &rarr; {Object}</span></h4>
1179
1180
1181</dt>
1182<dd>
1183
1184
1185 <div class="description">
1186 <p>Returns the <a href="CB_Keyboard.html#.keysDown"><code>CB_Keyboard.keysDown</code></a> object which contains the detected keys pressed or released.</p>
1187 </div>
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198<dl class="details">
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1229 <dd class="tag-source">
1230 <ul class="dummy">
1231 <li>
1232 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
1233 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3227">line 3227</a>
1234 </li>
1235 </ul>
1236 </dd>
1237
1238
1239
1240
1241
1242
1243
1244</dl>
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258 <h5>Returns:</h5>
1259
1260
1261<div class="param-desc">
1262 <p>Returns the <a href="CB_Keyboard.html#.keysDown"><code>CB_Keyboard.keysDown</code></a> object.</p>
1263</div>
1264
1265
1266
1267<dl>
1268 <dt>
1269 Type
1270 </dt>
1271 <dd>
1272
1273<span class="param-type">Object</span>
1274
1275
1276
1277 </dd>
1278</dl>
1279
1280
1281
1282
1283
1284</dd>
1285
1286
1287
1288<hr>
1289<dt>
1290 <h4 class="name" id=".getKeysPressed"><span class="type-signature">&lt;static> </span>getKeysPressed<span class="signature">()</span><span class="type-signature"> &rarr; {array}</span></h4>
1291
1292
1293</dt>
1294<dd>
1295
1296
1297 <div class="description">
1298 <p>Returns the <a href="CB_Keyboard.html#.keysPressed"><code>CB_Keyboard.keysPressed</code></a> array which contains the key codes pressed recently (it will be cleared after the chosen milliseconds set with the <a href="CB_Keyboard.html#.setKeysPressedExpiration"><code>CB_Keyboard.setKeysPressedExpiration</code></a> function).</p>
1299 </div>
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310<dl class="details">
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1341 <dd class="tag-source">
1342 <ul class="dummy">
1343 <li>
1344 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
1345 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3338">line 3338</a>
1346 </li>
1347 </ul>
1348 </dd>
1349
1350
1351
1352
1353
1354
1355
1356</dl>
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370 <h5>Returns:</h5>
1371
1372
1373<div class="param-desc">
1374 <p>Returns the <a href="CB_Keyboard.html#.keysPressed"><code>CB_Keyboard.keysPressed</code></a> array.</p>
1375</div>
1376
1377
1378
1379<dl>
1380 <dt>
1381 Type
1382 </dt>
1383 <dd>
1384
1385<span class="param-type">array</span>
1386
1387
1388
1389 </dd>
1390</dl>
1391
1392
1393
1394
1395
1396</dd>
1397
1398
1399
1400<hr>
1401<dt>
1402 <h4 class="name" id=".getKeysPressedExpiration"><span class="type-signature">&lt;static> </span>getKeysPressedExpiration<span class="signature">()</span><span class="type-signature"> &rarr; {integer}</span></h4>
1403
1404
1405</dt>
1406<dd>
1407
1408
1409 <div class="description">
1410 <p>Returns the milliseconds after which the <a href="CB_Keyboard.html#.keysPressed"><code>CB_Keyboard.keysPressed</code></a> array is always cleared (emptied). The time always starts counting from zero again when a key is pressed (<a href="https://developer.mozilla.org/en-US/docs/Web/Events/keydown">onKeyDown</a> event is fired).<br>
1411To define this amount of time, the <a href="CB_Keyboard.html#.setKeysPressedExpiration"><code>CB_Keyboard.setKeysPressedExpiration</code></a> method must be used.</p>
1412 </div>
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423<dl class="details">
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1454 <dd class="tag-source">
1455 <ul class="dummy">
1456 <li>
1457 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
1458 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3368">line 3368</a>
1459 </li>
1460 </ul>
1461 </dd>
1462
1463
1464
1465
1466
1467
1468
1469</dl>
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483 <h5>Returns:</h5>
1484
1485
1486<div class="param-desc">
1487 <p>Returns the milliseconds of expiration defined for the <a href="CB_Keyboard.html#.keysPressed"><code>CB_Keyboard.keysPressed</code></a> array.</p>
1488</div>
1489
1490
1491
1492<dl>
1493 <dt>
1494 Type
1495 </dt>
1496 <dd>
1497
1498<span class="param-type">integer</span>
1499
1500
1501
1502 </dd>
1503</dl>
1504
1505
1506
1507
1508
1509</dd>
1510
1511
1512
1513<hr>
1514<dt>
1515 <h4 class="name" id=".getTypedString"><span class="type-signature">&lt;static> </span>getTypedString<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span></h4>
1516
1517
1518</dt>
1519<dd>
1520
1521
1522 <div class="description">
1523 <p>Returns the <a href="CB_Keyboard.html#.typedString"><code>CB_Keyboard.typedString</code></a> string which contains the string typed recently (it will be cleared after the chosen milliseconds set with the <a href="CB_Keyboard.html#.setTypedStringExpiration"><code>CB_Keyboard.setTypedStringExpiration</code></a> function).</p>
1524 </div>
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535<dl class="details">
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1566 <dd class="tag-source">
1567 <ul class="dummy">
1568 <li>
1569 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
1570 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3485">line 3485</a>
1571 </li>
1572 </ul>
1573 </dd>
1574
1575
1576
1577
1578
1579
1580
1581</dl>
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595 <h5>Returns:</h5>
1596
1597
1598<div class="param-desc">
1599 <p>Returns the <a href="CB_Keyboard.html#.typedString"><code>CB_Keyboard.typedString</code></a> string.</p>
1600</div>
1601
1602
1603
1604<dl>
1605 <dt>
1606 Type
1607 </dt>
1608 <dd>
1609
1610<span class="param-type">string</span>
1611
1612
1613
1614 </dd>
1615</dl>
1616
1617
1618
1619
1620
1621</dd>
1622
1623
1624
1625<hr>
1626<dt>
1627 <h4 class="name" id=".getTypedStringCodes"><span class="type-signature">&lt;static> </span>getTypedStringCodes<span class="signature">()</span><span class="type-signature"> &rarr; {array}</span></h4>
1628
1629
1630</dt>
1631<dd>
1632
1633
1634 <div class="description">
1635 <p>Returns the <a href="CB_Keyboard.html#.typedStringCodes"><code>CB_Keyboard.typedStringCodes</code></a> array which contains the key codes pressed that belongs to the string typed recently (it will be cleared after the chosen milliseconds set with the <a href="CB_Keyboard.html#.setTypedStringExpiration"><code>CB_Keyboard.setTypedStringExpiration</code></a> function).</p>
1636 </div>
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647<dl class="details">
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1678 <dd class="tag-source">
1679 <ul class="dummy">
1680 <li>
1681 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
1682 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3496">line 3496</a>
1683 </li>
1684 </ul>
1685 </dd>
1686
1687
1688
1689
1690
1691
1692
1693</dl>
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707 <h5>Returns:</h5>
1708
1709
1710<div class="param-desc">
1711 <p>Returns the <a href="CB_Keyboard.html#.typedStringCodes"><code>CB_Keyboard.typedStringCodes</code></a> array.</p>
1712</div>
1713
1714
1715
1716<dl>
1717 <dt>
1718 Type
1719 </dt>
1720 <dd>
1721
1722<span class="param-type">array</span>
1723
1724
1725
1726 </dd>
1727</dl>
1728
1729
1730
1731
1732
1733</dd>
1734
1735
1736
1737<hr>
1738<dt>
1739 <h4 class="name" id=".getTypedStringExpiration"><span class="type-signature">&lt;static> </span>getTypedStringExpiration<span class="signature">()</span><span class="type-signature"> &rarr; {integer}</span></h4>
1740
1741
1742</dt>
1743<dd>
1744
1745
1746 <div class="description">
1747 <p>Returns the milliseconds after which the <a href="CB_Keyboard.html#.typedString"><code>CB_Keyboard.typedString</code></a> string and the <a href="CB_Keyboard.html#.typedStringCodes"><code>CB_Keyboard.typedStringCodes</code></a> array are always cleared (emptied). The time always starts counting from zero again when a key is pressed (<a href="https://developer.mozilla.org/en-US/docs/Web/Events/keypress">onKeyPress</a> event is fired).<br>
1748To define this amount of time, the <a href="CB_Keyboard.html#.setTypedStringExpiration"><code>CB_Keyboard.setTypedStringExpiration</code></a> method must be used.</p>
1749 </div>
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760<dl class="details">
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1791 <dd class="tag-source">
1792 <ul class="dummy">
1793 <li>
1794 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
1795 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3526">line 3526</a>
1796 </li>
1797 </ul>
1798 </dd>
1799
1800
1801
1802
1803
1804
1805
1806</dl>
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820 <h5>Returns:</h5>
1821
1822
1823<div class="param-desc">
1824 <p>Returns the milliseconds of expiration defined for the <a href="CB_Keyboard.html#.typedString"><code>CB_Keyboard.typedString</code></a> string and the <a href="CB_Keyboard.html#.typedStringCodes"><code>CB_Keyboard.typedStringCodes</code></a> array.</p>
1825</div>
1826
1827
1828
1829<dl>
1830 <dt>
1831 Type
1832 </dt>
1833 <dd>
1834
1835<span class="param-type">integer</span>
1836
1837
1838
1839 </dd>
1840</dl>
1841
1842
1843
1844
1845
1846</dd>
1847
1848
1849
1850<hr>
1851<dt>
1852 <h4 class="name" id=".isKeyDown"><span class="type-signature">&lt;static> </span>isKeyDown<span class="signature">(keyCodes [, allPressed])</span><span class="type-signature"> &rarr; {boolean}</span></h4>
1853
1854
1855</dt>
1856<dd>
1857
1858
1859 <div class="description">
1860 <p>Returns whether the given key codes are being pressed (any of them or all at the same time, depending on the &quot;allPressed&quot; parameter).</p>
1861 </div>
1862
1863
1864
1865
1866
1867
1868
1869
1870 <h5>Parameters:</h5>
1871
1872
1873<table class="params table table-striped">
1874 <thead>
1875 <tr>
1876
1877 <th style="width:12%; min-width:110px;">Name</th>
1878
1879
1880 <th style="width:12%; min-width:110px;">Type</th>
1881
1882
1883 <th style="width:12%; min-width:110px;">Argument</th>
1884
1885
1886
1887 <th style="width:12%; min-width:110px;">Default</th>
1888
1889
1890 <th class="last" style="min-width:310px;">Description</th>
1891 </tr>
1892 </thead>
1893
1894 <tbody>
1895
1896
1897 <tr>
1898
1899 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>keyCodes</code></td>
1900
1901
1902 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1903
1904
1905<span class="param-type">integer</span>
1906|
1907
1908<span class="param-type">array</span>
1909|
1910
1911<span class="param-type">Object</span>
1912
1913
1914
1915
1916 </td>
1917
1918
1919 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1920
1921
1922
1923
1924
1925 </td>
1926
1927
1928
1929 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1930
1931 </td>
1932
1933
1934 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>An integer with the key code or a numeric array with the key codes that we want to check. It can also be an array of arrays, being each element a numeric array with the key codes that we want to check. Although not recommended (for performance purposes), this parameter can also support an object whose indexes are the keycodes (it will be converted to a numeric array internally).</p></td>
1935 </tr>
1936
1937
1938
1939 <tr>
1940
1941 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>allPressed</code></td>
1942
1943
1944 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1945
1946
1947<span class="param-type">boolean</span>
1948
1949
1950
1951
1952 </td>
1953
1954
1955 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1956
1957 &lt;optional><br>
1958
1959
1960
1961
1962
1963 </td>
1964
1965
1966
1967 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1968
1969 false
1970
1971 </td>
1972
1973
1974 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If set true, the function will only return true in the case that all given key codes are currently being pressed. Otherwise, if set to false, the function will return true in the case that any of the given key codes is currently being pressed. When the &quot;keyCodes&quot; is an array of arrays with key codes, it will be considered that all keys are being pressed if each single array (all of them) has at least one of its key codes pressed.</p></td>
1975 </tr>
1976
1977
1978 </tbody>
1979</table>
1980
1981
1982
1983
1984<dl class="details">
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2015 <dd class="tag-source">
2016 <ul class="dummy">
2017 <li>
2018 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
2019 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3240">line 3240</a>
2020 </li>
2021 </ul>
2022 </dd>
2023
2024
2025
2026
2027
2028
2029
2030</dl>
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044 <h5>Returns:</h5>
2045
2046
2047<div class="param-desc">
2048 <p>If &quot;allPressed&quot; parameter is set to true, returns true in the case that all given key codes are currently being pressed. If &quot;allPressed&quot; parameter is set to false, returns true in the case that any of the given key codes is currently being pressed. In all other cases, it returns false.</p>
2049</div>
2050
2051
2052
2053<dl>
2054 <dt>
2055 Type
2056 </dt>
2057 <dd>
2058
2059<span class="param-type">boolean</span>
2060
2061
2062
2063 </dd>
2064</dl>
2065
2066
2067
2068
2069
2070</dd>
2071
2072
2073
2074<hr>
2075<dt>
2076 <h4 class="name" id=".normalizeEvent"><span class="type-signature">&lt;static> </span>normalizeEvent<span class="signature">(e)</span><span class="type-signature"> &rarr; {Event}</span></h4>
2077
2078
2079</dt>
2080<dd>
2081
2082
2083 <div class="description">
2084 <p>Tries to return the given <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent">keyboard event</a> with some properties normalized (since different clients can use different values) and perhaps some new properties added (in the case they were missing), when possible. The new attached methods and properties may include polyfills, etc. It also calls the <a href="CB_Events.html#.normalize"><code>CB_Events.normalize</code></a> function internally. Some properties added or affected could be <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode">keyCode</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/location">location</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/ctrlKey">ctrlKey</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/altKey">altKey</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/shiftKey">shiftKey</a>, etc.</p>
2085 </div>
2086
2087
2088
2089
2090
2091
2092
2093
2094 <h5>Parameters:</h5>
2095
2096
2097<table class="params table table-striped">
2098 <thead>
2099 <tr>
2100
2101 <th style="width:12%; min-width:110px;">Name</th>
2102
2103
2104 <th style="width:12%; min-width:110px;">Type</th>
2105
2106
2107
2108
2109
2110 <th class="last" style="min-width:310px;">Description</th>
2111 </tr>
2112 </thead>
2113
2114 <tbody>
2115
2116
2117 <tr>
2118
2119 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>e</code></td>
2120
2121
2122 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2123
2124
2125<span class="param-type">Event</span>
2126
2127
2128
2129
2130 </td>
2131
2132
2133
2134
2135
2136 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent">Keyboard event</a> object. If not provided, it will use the value of &quot;event&quot;, &quot;window.event&quot;, &quot;Event&quot; or an empty object (&quot;{}&quot;).</p></td>
2137 </tr>
2138
2139
2140 </tbody>
2141</table>
2142
2143
2144
2145
2146<dl class="details">
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2177 <dd class="tag-source">
2178 <ul class="dummy">
2179 <li>
2180 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
2181 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3109">line 3109</a>
2182 </li>
2183 </ul>
2184 </dd>
2185
2186
2187
2188
2189
2190
2191
2192 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
2193 <dd class="tag-todo">
2194 <ul>
2195 <li>Calculate (if possible) the values for location, ctrlKey, altKey, etc. when added, to simulate the expected behaviour.</li>
2196 </ul>
2197 </dd>
2198
2199</dl>
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213 <h5>Returns:</h5>
2214
2215
2216<div class="param-desc">
2217 <p>Returns the <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent">keyboard event</a> object normalized.</p>
2218</div>
2219
2220
2221
2222<dl>
2223 <dt>
2224 Type
2225 </dt>
2226 <dd>
2227
2228<span class="param-type">Event</span>
2229
2230
2231
2232 </dd>
2233</dl>
2234
2235
2236
2237
2238
2239</dd>
2240
2241
2242
2243<hr>
2244<dt>
2245 <h4 class="name" id=".onKeyDown"><span class="type-signature">&lt;static> </span>onKeyDown<span class="signature">(callbackFunction [, keepOldFunction] [, useCapture] [, target])</span><span class="type-signature"></span></h4>
2246
2247
2248</dt>
2249<dd>
2250
2251
2252 <div class="description">
2253 <p>Sets a function to execute when a key is down (<a href="https://developer.mozilla.org/en-US/docs/Web/Events/keydown">onKeyDown</a> event) or removes it.</p>
2254 </div>
2255
2256
2257
2258
2259
2260
2261
2262
2263 <h5>Parameters:</h5>
2264
2265
2266<table class="params table table-striped">
2267 <thead>
2268 <tr>
2269
2270 <th style="width:12%; min-width:110px;">Name</th>
2271
2272
2273 <th style="width:12%; min-width:110px;">Type</th>
2274
2275
2276 <th style="width:12%; min-width:110px;">Argument</th>
2277
2278
2279
2280 <th style="width:12%; min-width:110px;">Default</th>
2281
2282
2283 <th class="last" style="min-width:310px;">Description</th>
2284 </tr>
2285 </thead>
2286
2287 <tbody>
2288
2289
2290 <tr>
2291
2292 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>callbackFunction</code></td>
2293
2294
2295 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2296
2297
2298<span class="param-type"><a href="CB_Keyboard.html#.EVENT_CALLBACK">CB_Keyboard.EVENT_CALLBACK</a></span>
2299|
2300
2301<span class="param-type">null</span>
2302
2303
2304
2305
2306 </td>
2307
2308
2309 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2310
2311
2312
2313
2314
2315 </td>
2316
2317
2318
2319 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2320
2321 </td>
2322
2323
2324 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The function (event listener) that we want to execute when the event is fired. The first parameter received for this function will be the event object (already normalized by the <a href="CB_Keyboard.html#.normalizeEvent"><code>CB_Keyboard.normalizeEvent</code></a> function) and the second one will be the key code associated. If a null value is used, the event will be removed.</p></td>
2325 </tr>
2326
2327
2328
2329 <tr>
2330
2331 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>keepOldFunction</code></td>
2332
2333
2334 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2335
2336
2337<span class="param-type">boolean</span>
2338
2339
2340
2341
2342 </td>
2343
2344
2345 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2346
2347 &lt;optional><br>
2348
2349
2350
2351
2352
2353 </td>
2354
2355
2356
2357 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2358
2359 true
2360
2361 </td>
2362
2363
2364 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether we want to keep any possible previous event listener for the same target and event name or not.</p></td>
2365 </tr>
2366
2367
2368
2369 <tr>
2370
2371 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>useCapture</code></td>
2372
2373
2374 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2375
2376
2377<span class="param-type">boolean</span>
2378
2379
2380
2381
2382 </td>
2383
2384
2385 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2386
2387 &lt;optional><br>
2388
2389
2390
2391
2392
2393 </td>
2394
2395
2396
2397 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2398
2399 false
2400
2401 </td>
2402
2403
2404 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether the event we want to add will use capture or not. This parameter will be effective only if the current client supports the <a href="https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener">addEventListener</a> method and will be used as its third parameter.</p></td>
2405 </tr>
2406
2407
2408
2409 <tr>
2410
2411 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>target</code></td>
2412
2413
2414 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2415
2416
2417<span class="param-type">Object</span>
2418
2419
2420
2421
2422 </td>
2423
2424
2425 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2426
2427 &lt;optional><br>
2428
2429
2430
2431
2432
2433 </td>
2434
2435
2436
2437 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2438
2439 document
2440
2441 </td>
2442
2443
2444 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The target where we want to attach the event listener.</p></td>
2445 </tr>
2446
2447
2448 </tbody>
2449</table>
2450
2451
2452
2453
2454<dl class="details">
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2485 <dd class="tag-source">
2486 <ul class="dummy">
2487 <li>
2488 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
2489 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3601">line 3601</a>
2490 </li>
2491 </ul>
2492 </dd>
2493
2494
2495
2496
2497
2498
2499
2500</dl>
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516</dd>
2517
2518
2519
2520<hr>
2521<dt>
2522 <h4 class="name" id=".onKeyPress"><span class="type-signature">&lt;static> </span>onKeyPress<span class="signature">(callbackFunction [, keepOldFunction] [, useCapture] [, target])</span><span class="type-signature"></span></h4>
2523
2524
2525</dt>
2526<dd>
2527
2528
2529 <div class="description">
2530 <p>Sets a function to execute when a key is pressed (<a href="https://developer.mozilla.org/en-US/docs/Web/Events/keypress">onKeyPress</a> event) or removes it.</p>
2531 </div>
2532
2533
2534
2535
2536
2537
2538
2539
2540 <h5>Parameters:</h5>
2541
2542
2543<table class="params table table-striped">
2544 <thead>
2545 <tr>
2546
2547 <th style="width:12%; min-width:110px;">Name</th>
2548
2549
2550 <th style="width:12%; min-width:110px;">Type</th>
2551
2552
2553 <th style="width:12%; min-width:110px;">Argument</th>
2554
2555
2556
2557 <th style="width:12%; min-width:110px;">Default</th>
2558
2559
2560 <th class="last" style="min-width:310px;">Description</th>
2561 </tr>
2562 </thead>
2563
2564 <tbody>
2565
2566
2567 <tr>
2568
2569 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>callbackFunction</code></td>
2570
2571
2572 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2573
2574
2575<span class="param-type"><a href="CB_Keyboard.html#.EVENT_CALLBACK">CB_Keyboard.EVENT_CALLBACK</a></span>
2576|
2577
2578<span class="param-type">null</span>
2579
2580
2581
2582
2583 </td>
2584
2585
2586 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2587
2588
2589
2590
2591
2592 </td>
2593
2594
2595
2596 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2597
2598 </td>
2599
2600
2601 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The function (event listener) that we want to execute when the event is fired. The first parameter received for this function will be the event object (already normalized by the <a href="CB_Keyboard.html#.normalizeEvent"><code>CB_Keyboard.normalizeEvent</code></a> function) and the second one will be the key code associated. If a null value is used, the event will be removed.</p></td>
2602 </tr>
2603
2604
2605
2606 <tr>
2607
2608 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>keepOldFunction</code></td>
2609
2610
2611 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2612
2613
2614<span class="param-type">boolean</span>
2615
2616
2617
2618
2619 </td>
2620
2621
2622 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2623
2624 &lt;optional><br>
2625
2626
2627
2628
2629
2630 </td>
2631
2632
2633
2634 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2635
2636 true
2637
2638 </td>
2639
2640
2641 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether we want to keep any possible previous event listener for the same target and event name or not.</p></td>
2642 </tr>
2643
2644
2645
2646 <tr>
2647
2648 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>useCapture</code></td>
2649
2650
2651 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2652
2653
2654<span class="param-type">boolean</span>
2655
2656
2657
2658
2659 </td>
2660
2661
2662 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2663
2664 &lt;optional><br>
2665
2666
2667
2668
2669
2670 </td>
2671
2672
2673
2674 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2675
2676 false
2677
2678 </td>
2679
2680
2681 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether the event we want to add will use capture or not. This parameter will be effective only if the current client supports the <a href="https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener">addEventListener</a> method and will be used as its third parameter.</p></td>
2682 </tr>
2683
2684
2685
2686 <tr>
2687
2688 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>target</code></td>
2689
2690
2691 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2692
2693
2694<span class="param-type">Object</span>
2695
2696
2697
2698
2699 </td>
2700
2701
2702 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2703
2704 &lt;optional><br>
2705
2706
2707
2708
2709
2710 </td>
2711
2712
2713
2714 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2715
2716 document
2717
2718 </td>
2719
2720
2721 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The target where we want to attach the event listener.</p></td>
2722 </tr>
2723
2724
2725 </tbody>
2726</table>
2727
2728
2729
2730
2731<dl class="details">
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2762 <dd class="tag-source">
2763 <ul class="dummy">
2764 <li>
2765 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
2766 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3587">line 3587</a>
2767 </li>
2768 </ul>
2769 </dd>
2770
2771
2772
2773
2774
2775
2776
2777</dl>
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793</dd>
2794
2795
2796
2797<hr>
2798<dt>
2799 <h4 class="name" id=".onKeyUp"><span class="type-signature">&lt;static> </span>onKeyUp<span class="signature">(callbackFunction [, keepOldFunction] [, useCapture] [, target])</span><span class="type-signature"></span></h4>
2800
2801
2802</dt>
2803<dd>
2804
2805
2806 <div class="description">
2807 <p>Sets a function to execute when a key is released (<a href="https://developer.mozilla.org/en-US/docs/Web/Events/keyup">onKeyUp</a> event) or removes it.</p>
2808 </div>
2809
2810
2811
2812
2813
2814
2815
2816
2817 <h5>Parameters:</h5>
2818
2819
2820<table class="params table table-striped">
2821 <thead>
2822 <tr>
2823
2824 <th style="width:12%; min-width:110px;">Name</th>
2825
2826
2827 <th style="width:12%; min-width:110px;">Type</th>
2828
2829
2830 <th style="width:12%; min-width:110px;">Argument</th>
2831
2832
2833
2834 <th style="width:12%; min-width:110px;">Default</th>
2835
2836
2837 <th class="last" style="min-width:310px;">Description</th>
2838 </tr>
2839 </thead>
2840
2841 <tbody>
2842
2843
2844 <tr>
2845
2846 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>callbackFunction</code></td>
2847
2848
2849 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2850
2851
2852<span class="param-type"><a href="CB_Keyboard.html#.EVENT_CALLBACK">CB_Keyboard.EVENT_CALLBACK</a></span>
2853|
2854
2855<span class="param-type">null</span>
2856
2857
2858
2859
2860 </td>
2861
2862
2863 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2864
2865
2866
2867
2868
2869 </td>
2870
2871
2872
2873 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2874
2875 </td>
2876
2877
2878 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The function (event listener) that we want to execute when the event is fired. The first parameter received for this function will be the event object (already normalized by the <a href="CB_Keyboard.html#.normalizeEvent"><code>CB_Keyboard.normalizeEvent</code></a> function) and the second one will be the key code associated. If a null value is used, the event will be removed.</p></td>
2879 </tr>
2880
2881
2882
2883 <tr>
2884
2885 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>keepOldFunction</code></td>
2886
2887
2888 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2889
2890
2891<span class="param-type">boolean</span>
2892
2893
2894
2895
2896 </td>
2897
2898
2899 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2900
2901 &lt;optional><br>
2902
2903
2904
2905
2906
2907 </td>
2908
2909
2910
2911 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2912
2913 true
2914
2915 </td>
2916
2917
2918 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether we want to keep any possible previous event listener for the same target and event name or not.</p></td>
2919 </tr>
2920
2921
2922
2923 <tr>
2924
2925 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>useCapture</code></td>
2926
2927
2928 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2929
2930
2931<span class="param-type">boolean</span>
2932
2933
2934
2935
2936 </td>
2937
2938
2939 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2940
2941 &lt;optional><br>
2942
2943
2944
2945
2946
2947 </td>
2948
2949
2950
2951 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2952
2953 false
2954
2955 </td>
2956
2957
2958 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether the event we want to add will use capture or not. This parameter will be effective only if the current client supports the <a href="https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener">addEventListener</a> method and will be used as its third parameter.</p></td>
2959 </tr>
2960
2961
2962
2963 <tr>
2964
2965 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>target</code></td>
2966
2967
2968 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2969
2970
2971<span class="param-type">Object</span>
2972
2973
2974
2975
2976 </td>
2977
2978
2979 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2980
2981 &lt;optional><br>
2982
2983
2984
2985
2986
2987 </td>
2988
2989
2990
2991 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2992
2993 document
2994
2995 </td>
2996
2997
2998 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The target where we want to attach the event listener.</p></td>
2999 </tr>
3000
3001
3002 </tbody>
3003</table>
3004
3005
3006
3007
3008<dl class="details">
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
3039 <dd class="tag-source">
3040 <ul class="dummy">
3041 <li>
3042 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
3043 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3615">line 3615</a>
3044 </li>
3045 </ul>
3046 </dd>
3047
3048
3049
3050
3051
3052
3053
3054</dl>
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070</dd>
3071
3072
3073
3074<hr>
3075<dt>
3076 <h4 class="name" id=".preventF11Key"><span class="type-signature">&lt;static> </span>preventF11Key<span class="signature">(e)</span><span class="type-signature"></span></h4>
3077
3078
3079</dt>
3080<dd>
3081
3082
3083 <div class="description">
3084 <p>Tries to prevent the default behaviour that would produce the &quot;F11&quot; key of a given <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent">keyboard event</a> when the client is compatible with the HTML5 Fullscreen API and uses it to toggle (enable or disable) the fullscreen mode. It calls the <a href="CB_Keyboard.html#.normalizeEvent"><code>CB_Keyboard.normalizeEvent</code></a> function internally.</p>
3085 </div>
3086
3087
3088
3089
3090
3091
3092
3093
3094 <h5>Parameters:</h5>
3095
3096
3097<table class="params table table-striped">
3098 <thead>
3099 <tr>
3100
3101 <th style="width:12%; min-width:110px;">Name</th>
3102
3103
3104 <th style="width:12%; min-width:110px;">Type</th>
3105
3106
3107
3108
3109
3110 <th class="last" style="min-width:310px;">Description</th>
3111 </tr>
3112 </thead>
3113
3114 <tbody>
3115
3116
3117 <tr>
3118
3119 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>e</code></td>
3120
3121
3122 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3123
3124
3125<span class="param-type">Event</span>
3126
3127
3128
3129
3130 </td>
3131
3132
3133
3134
3135
3136 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent">Keyboard event</a> object.</p></td>
3137 </tr>
3138
3139
3140 </tbody>
3141</table>
3142
3143
3144
3145
3146<dl class="details">
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
3177 <dd class="tag-source">
3178 <ul class="dummy">
3179 <li>
3180 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
3181 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3537">line 3537</a>
3182 </li>
3183 </ul>
3184 </dd>
3185
3186
3187
3188
3189
3190
3191
3192</dl>
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208</dd>
3209
3210
3211
3212<hr>
3213<dt>
3214 <h4 class="name" id=".setKeysPressedExpiration"><span class="type-signature">&lt;static> </span>setKeysPressedExpiration<span class="signature">(keysPressedExpiration)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
3215
3216
3217</dt>
3218<dd>
3219
3220
3221 <div class="description">
3222 <p>Sets the milliseconds after which the <a href="CB_Keyboard.html#.keysPressed"><code>CB_Keyboard.keysPressed</code></a> array is always cleared (emptied). The time always starts counting from zero when a key is pressed (<a href="https://developer.mozilla.org/en-US/docs/Web/Events/keydown">onKeyDown</a> event is fired).</p>
3223 </div>
3224
3225
3226
3227
3228
3229
3230
3231
3232 <h5>Parameters:</h5>
3233
3234
3235<table class="params table table-striped">
3236 <thead>
3237 <tr>
3238
3239 <th style="width:12%; min-width:110px;">Name</th>
3240
3241
3242 <th style="width:12%; min-width:110px;">Type</th>
3243
3244
3245
3246
3247
3248 <th class="last" style="min-width:310px;">Description</th>
3249 </tr>
3250 </thead>
3251
3252 <tbody>
3253
3254
3255 <tr>
3256
3257 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>keysPressedExpiration</code></td>
3258
3259
3260 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3261
3262
3263<span class="param-type">integer</span>
3264
3265
3266
3267
3268 </td>
3269
3270
3271
3272
3273
3274 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>An integer greater than 0 (zero) representing the milliseconds after which we desire that the <a href="CB_Keyboard.html#.keysPressed"><code>CB_Keyboard.keysPressed</code></a> array is cleared (emptied), if no key is pressed during this time.</p></td>
3275 </tr>
3276
3277
3278 </tbody>
3279</table>
3280
3281
3282
3283
3284<dl class="details">
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
3315 <dd class="tag-source">
3316 <ul class="dummy">
3317 <li>
3318 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
3319 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3350">line 3350</a>
3320 </li>
3321 </ul>
3322 </dd>
3323
3324
3325
3326
3327
3328
3329
3330</dl>
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344 <h5>Returns:</h5>
3345
3346
3347<div class="param-desc">
3348 <p>Returns true if the given time could be applied or false otherwise.</p>
3349</div>
3350
3351
3352
3353<dl>
3354 <dt>
3355 Type
3356 </dt>
3357 <dd>
3358
3359<span class="param-type">boolean</span>
3360
3361
3362
3363 </dd>
3364</dl>
3365
3366
3367
3368
3369
3370</dd>
3371
3372
3373
3374<hr>
3375<dt>
3376 <h4 class="name" id=".setTypedStringExpiration"><span class="type-signature">&lt;static> </span>setTypedStringExpiration<span class="signature">(keysPressedExpiration)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
3377
3378
3379</dt>
3380<dd>
3381
3382
3383 <div class="description">
3384 <p>Sets the milliseconds after which the <a href="CB_Keyboard.html#.typedString"><code>CB_Keyboard.typedString</code></a> string and the <a href="CB_Keyboard.html#.typedStringCodes"><code>CB_Keyboard.typedStringCodes</code></a> array are always cleared (emptied). The time always starts counting from zero when a key is pressed (<a href="https://developer.mozilla.org/en-US/docs/Web/Events/keypress">onKeyPress</a> event is fired).</p>
3385 </div>
3386
3387
3388
3389
3390
3391
3392
3393
3394 <h5>Parameters:</h5>
3395
3396
3397<table class="params table table-striped">
3398 <thead>
3399 <tr>
3400
3401 <th style="width:12%; min-width:110px;">Name</th>
3402
3403
3404 <th style="width:12%; min-width:110px;">Type</th>
3405
3406
3407
3408
3409
3410 <th class="last" style="min-width:310px;">Description</th>
3411 </tr>
3412 </thead>
3413
3414 <tbody>
3415
3416
3417 <tr>
3418
3419 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>keysPressedExpiration</code></td>
3420
3421
3422 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3423
3424
3425<span class="param-type">integer</span>
3426
3427
3428
3429
3430 </td>
3431
3432
3433
3434
3435
3436 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>An integer greater than 0 (zero) representing the milliseconds after which we desire that the <a href="CB_Keyboard.html#.typedString"><code>CB_Keyboard.typedString</code></a> string and the <a href="CB_Keyboard.html#.typedStringCodes"><code>CB_Keyboard.typedStringCodes</code></a> array are cleared (emptied), if no key is pressed during this time.</p></td>
3437 </tr>
3438
3439
3440 </tbody>
3441</table>
3442
3443
3444
3445
3446<dl class="details">
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
3477 <dd class="tag-source">
3478 <ul class="dummy">
3479 <li>
3480 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
3481 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3508">line 3508</a>
3482 </li>
3483 </ul>
3484 </dd>
3485
3486
3487
3488
3489
3490
3491
3492</dl>
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506 <h5>Returns:</h5>
3507
3508
3509<div class="param-desc">
3510 <p>Returns true if the given time could be applied or false otherwise.</p>
3511</div>
3512
3513
3514
3515<dl>
3516 <dt>
3517 Type
3518 </dt>
3519 <dd>
3520
3521<span class="param-type">boolean</span>
3522
3523
3524
3525 </dd>
3526</dl>
3527
3528
3529
3530
3531
3532</dd>
3533
3534 </dl>
3535
3536
3537
3538 <h3 class="subsection-title">Type Definitions</h3>
3539
3540 <dl>
3541
3542<hr>
3543<dt>
3544 <h4 class="name" id=".EVENT_CALLBACK"><span class="type-signature"></span>EVENT_CALLBACK<span class="signature">(e, keyCode)</span><span class="type-signature"></span></h4>
3545
3546
3547</dt>
3548<dd>
3549
3550
3551 <div class="description">
3552 <p>Callback that is called before loading a file and should return true if we want to load the file or false otherwise.</p>
3553 </div>
3554
3555
3556
3557
3558
3559
3560
3561
3562 <h5>Parameters:</h5>
3563
3564
3565<table class="params table table-striped">
3566 <thead>
3567 <tr>
3568
3569 <th style="width:12%; min-width:110px;">Name</th>
3570
3571
3572 <th style="width:12%; min-width:110px;">Type</th>
3573
3574
3575
3576
3577
3578 <th class="last" style="min-width:310px;">Description</th>
3579 </tr>
3580 </thead>
3581
3582 <tbody>
3583
3584
3585 <tr>
3586
3587 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>e</code></td>
3588
3589
3590 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3591
3592
3593<span class="param-type">Event</span>
3594
3595
3596
3597
3598 </td>
3599
3600
3601
3602
3603
3604 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent">Keyboard event</a> object.</p></td>
3605 </tr>
3606
3607
3608
3609 <tr>
3610
3611 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>keyCode</code></td>
3612
3613
3614 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
3615
3616
3617<span class="param-type">integer</span>
3618
3619
3620
3621
3622 </td>
3623
3624
3625
3626
3627
3628 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Key code which fired the event.</p></td>
3629 </tr>
3630
3631
3632 </tbody>
3633</table>
3634
3635
3636
3637
3638<dl class="details">
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
3669 <dd class="tag-source">
3670 <ul class="dummy">
3671 <li>
3672 <a href="CrossBase_input_CB_Keyboard.js.html">CrossBase/input/CB_Keyboard.js</a>,
3673 <a href="CrossBase_input_CB_Keyboard.js.html#sunlight-1-line-3570">line 3570</a>
3674 </li>
3675 </ul>
3676 </dd>
3677
3678
3679
3680
3681
3682
3683
3684</dl>
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700</dd>
3701
3702 </dl>
3703
3704
3705
3706</article>
3707
3708</section>
3709
3710
3711
3712
3713 </div>
3714 </div>
3715
3716 <div class="clearfix"></div>
3717
3718
3719 <div class="col-md-3">
3720 <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md" style="display:none; visibility:hidden;"></div>
3721 </div>
3722
3723
3724</div>
3725</div>
3726
3727
3728 <div class="modal fade" id="searchResults">
3729 <div class="modal-dialog">
3730 <div class="modal-content">
3731 <div class="modal-header">
3732 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
3733 <h4 class="modal-title">Search results</h4>
3734 </div>
3735 <div class="modal-body"></div>
3736 <div class="modal-footer">
3737 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
3738 </div>
3739 </div><!-- /.modal-content -->
3740 </div><!-- /.modal-dialog -->
3741 </div>
3742
3743
3744<footer>
3745
3746
3747 <span class="copyright">
3748 <span style="color:#000000">© <address style="display:inline; font-style:normal;"><a href="https://crossbrowdy.com/" target="_blank">CrossBrowdy</a> API documentation</address> by <a href="https://joanalbamaldonado.com/" target="_blank">Joan Alba Maldonado</a> - <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">Creative Commons Attribution 4.0 International</a><br />DocStrap Copyright © 2012-2015 The contributors to the JSDoc3 and DocStrap projects.</span>
3749 </span>
3750
3751<span class="jsdoc-message">
3752 Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>
3753
3754 on Wed Mar 22nd 2023
3755
3756 using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
3757</span>
3758</footer>
3759
3760<script src="scripts/docstrap.lib.js"></script>
3761<script src="scripts/toc.js"></script>
3762
3763 <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
3764
3765
3766<script>
3767$( function () {
3768 $( "[id*='$']" ).each( function () {
3769 var $this = $( this );
3770
3771 $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
3772 } );
3773
3774 $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
3775 var $this = $( this );
3776
3777 var example = $this.find( "code" );
3778 exampleText = example.html();
3779 var lang = /{@lang (.*?)}/.exec( exampleText );
3780 if ( lang && lang[1] ) {
3781 exampleText = exampleText.replace( lang[0], "" );
3782 example.html( exampleText );
3783 lang = lang[1];
3784 } else {
3785 var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
3786 lang = langClassMatch ? langClassMatch[1] : "javascript";
3787 }
3788
3789 if ( lang ) {
3790
3791 $this
3792 .addClass( "sunlight-highlight-" + lang )
3793 .addClass( "linenums" )
3794 .html( example.html() );
3795
3796 }
3797 } );
3798
3799 Sunlight.highlightAll( {
3800 lineNumbers : true,
3801 showMenu : true,
3802 enableDoclinks : true
3803 } );
3804
3805 $.catchAnchorLinks( {
3806 navbarOffset: 10
3807 } );
3808 $( "#toc" ).toc( {
3809 anchorName : function ( i, heading, prefix ) {
3810 return $( heading ).attr( "id" ) || ( prefix + i );
3811 },
3812 selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
3813 showAndHide : false,
3814 smoothScrolling: true
3815 } );
3816
3817 $( "#main span[id^='toc']" ).addClass( "toc-shim" );
3818 $( '.dropdown-toggle' ).dropdown();
3819
3820 $( "table" ).each( function () {
3821 var $this = $( this );
3822 $this.addClass('table');
3823 } );
3824
3825} );
3826</script>
3827
3828
3829
3830<!--Navigation and Symbol Display-->
3831
3832
3833<!--Google Analytics-->
3834
3835
3836
3837 <script type="text/javascript">
3838 $(document).ready(function() {
3839 SearcherDisplay.init();
3840 });
3841 </script>
3842
3843
3844</body>
3845</html>
\No newline at end of file