Commit graph pcjs/modules/pcx86/lib/keyboard.js
Author SHA1 Message Date
Jeff Parsons
7a871ee7a1 Fixed default keystroke injection delay 2017-09-24 18:33:54 -07:00
Jeff Parsons
22728fb7e9 v1.37.1: Fixed a CPU bug wherein resetting a running CPU could result in multiple runCPU() timeout handlers being created (there should never be more than one outstanding runCPU() setTimeout request); also modified the Keyboard component to use a CPU-driven timer instead of setTimeout() for keystroke injection, so that stopping/starting the CPU won't interfere with the injection process 2017-09-24 18:11:44 -07:00
Jeff Parsons
8523800d8c When a key is required to dismiss a PCx86 machine diagnostics screen, make sure that key isn't also passed on to the machine 2017-08-09 12:44:54 -07:00
Jeff Parsons
aac9a13328 Added 'diagnostics' (0, 1, or 2) and 'randomize' (0 or 1) PCx86 machine parameters to control diagnostic message display/prompting and video screen randomization, respectively 2017-08-09 11:42:38 -07:00
Jeff Parsons
2fc2872386 Fixed a few lingering code inspection warnings and typos 2017-08-08 17:30:28 -07:00
Jeff Parsons
aefe2b4b5b Improved logging of strings with embedded carriage returns 2017-08-02 10:58:21 -07:00
Jeff Parsons
d8804faba0 Fixed soft keyboard controls for both iOS and non-iOS browsers, and updated the TopView 1.01 page 2017-07-25 18:50:14 -07:00
Jeff Parsons
30df38738c Added support for automatic scripts (ie, autoScript) 2017-07-25 12:52:36 -07:00
Jeff Parsons
1b987df6e2 Added more scripting support to PCx86 (eg, for loading disks, typing keys, and waiting for both to finish) 2017-07-25 10:30:29 -07:00
Jeff Parsons
6f9bfa1950 Trying to do a better job of properly typing DOM objects 2017-06-28 09:41:01 -07:00
Jeff Parsons
7ca8fa18a1 Changed the onclick handlers for Keyboard CLICKCODES to let updateFocus() scroll the canvas into view as needed, because (at least on iOS) the code that tries prevent the page from scrolling has an annoying "jerking" side-effect; also fixed the old Node web server code that would install onclick handlers for disk images, triggering automatic conversion of JSON to IMG files 2017-06-26 11:05:01 -07:00
Jeff Parsons
113201fdb4 Added a cleaner solution for string replacement woes (ie, use Str.replace() instead of applying replace(/\$/g, "$$$$") to replacement strings) 2017-06-23 11:56:14 -07:00
Jeff Parsons
9ad03d66b3 parseAutoType() now leaves unrecognized $-sequences alone, instead of complaining about them 2017-06-23 10:23:07 -07:00
Jeff Parsons
5a22c9c59b Added more documentation regarding a REALLY annoying feature of JavaScript's string replace() method 2017-06-23 10:03:27 -07:00
Jeff Parsons
991e924d01 Added support for special autoType sequences (eg, $date and $time, which generate current date and time strings accepted by the PC-DOS date and time prompts) 2017-06-23 09:39:40 -07:00
Jeff Parsons
5e0e5b7256 Updated the VisiCalc demo with an autoType sequence, a fresh disk image, new state file, and reference cards; also, updated autoType support to cancel autoType if a saved machine state is loaded 2017-06-19 08:48:10 -07:00
Jeff Parsons
cb43a6b360 Fixed cancellation of key injection whenever a soft key is pressed 2017-06-17 17:43:43 -07:00
Jeff Parsons
fd3348f907 Added an autoType sequence to the RatBas demo 2017-06-17 10:56:22 -07:00
Jeff Parsons
8f8082d170 Stop keyboard injection as soon as any real keyboard activity is detected 2017-06-15 16:48:12 -07:00
Jeff Parsons
af4750eefc Fixed autoType support in the PCx86 Keyboard component 2017-06-14 23:43:09 -07:00
Jeff Parsons
822ab39cbe Unforked the shared modules -- ES6 is now the default 2017-01-31 13:50:55 -08:00
Jeff Parsons
323a42be37 Converted the rest of the PCjs machines to ES6 2017-01-31 11:44:33 -08:00
Jeff Parsons
f21deebffb Perform a more conservative remapping of keyCodes for Firefox's sake 2017-01-30 15:30:44 -08:00
Jeff Parsons
f87161f5d6 v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
Jeff Parsons
772bd39543 I'm Dreaming of White Spaces 2016-12-18 15:05:41 -08:00
Jeff Parsons
342f976e42 Fixed soft key processing for PC8080 (to fix an issue with the Epiphany browser on the elementary OS involving the VT100 SET-UP button) 2016-12-05 12:26:32 -08:00
Jeff Parsons
57d287f161 The VT100 is now smarter about detecting the host machine's physical CAPS LOCK state (and is also capable of displaying that state now) 2016-11-25 16:06:39 -08:00
Jeff Parsons
b1f8fca2d9 Re-enabled source maps, at least for the PDP-11 emulators (for now) 2016-10-14 09:30:17 -07:00
Jeff
e24d507aa2 Removed useless version numbers and dates from .js file headers 2016-10-06 16:22:24 -07:00
Jeff Parsons
5f622303b4 Completed Keys factoring 2016-09-15 08:18:37 -07:00
Jeff Parsons
5398064ec4 Started Keys factoring 2016-09-15 07:59:12 -07:00
Jeff Parsons
a8bb0c7841 First stab at factoring some common Debugger functionality into a shared component 2016-09-14 15:36:38 -07:00
Jeff Parsons
c08d399d3f Moved Message categories into messages.js, and include defines.js as appropriate 2016-08-19 16:35:09 -07:00
Jeff Parsons
0e4ad76b94 Cross-machine serial port connections are only half-working (need to defer initConnection() until all machines on the page have initialized their bus) 2016-08-18 11:30:22 -07:00
Jeff Parsons
762ef22545 Added TEST control to exercise the VT100's 8251A UART (um, excuse me, the PUSART -- an awful acronym) 2016-08-15 14:19:06 -07:00
Jeff Parsons
e516070375 Added Video callout to make resolutions adjustments (eg, from 80-column mode to 132-column mode); work in Video component ready to begin 2016-08-15 10:49:04 -07:00
Jeff Parsons
b25a9268a1 Added round LEDs to the UI (initially just for the VT100) 2016-08-02 11:02:00 -07:00
Jeff Parsons
a1e999e0c4 More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
Jeff Parsons
288f28055d Starting work on disambiguating PCjs the emulator from PCjs the project/website; the emulator will become PCx86 2016-05-16 20:55:32 -07:00
Renamed from modules/pcjs/lib/keyboard.js (Browse further)