Have you ever done something stupid just so you don't have to do whatever it is you're supposed to be doing because you feel like procrastinating? I found myself doing that this evening by programming a keyboard widget in JavaScript.
Right now it's just sloppy code without any real functionality, but feel free to take a look at it at http://www.saltcitytech.com/projects/keyboard.
Theoretically, one could add a couple of state variables to monitor the ctrl, shift, alt and caps lock keys, check those variables in the keys' onclick callback, and have a fully functional keyboard widget. Since the key characters are defined in a mapping object, it should be relatively easy to internationalize it just by changing the mapping definitions.
I may clean up the code in the future depending if someone actually sees a viable use for it or if I find myself needing to procrastinate again.
next...a monitor and mouse written in javascript...soon we wouldn't even need a computer to write software!
ReplyDelete...wait...