Artifact bffad8d9b5ea5bd42102313836c432f8432f3983:
- File examples/keybinding.html — part of check-in [849d2de981] at 2018-01-30 19:57:59 on branch trunk — Changed tests/ to examples/ While these are used for testing as well, they serve as examples for other possible users too, and are not anyway built with any kind of test framework. (user: setok size: 717)
- File test/keybinding.html — part of check-in [00f02bb3b1] at 2013-09-25 14:07:15 on branch trunk — Moved up-to-date storkCore files over (user: setok@scred.com size: 717)
- File tests/keybinding.html — part of check-in [23e7e3057b] at 2015-01-02 14:37:46 on branch holvilatest — Brought what should be the version which was opensourced from Holvi (user: setok size: 717)
<html> <head> <script type="text/javascript" src="../storkCore.js"> </script> <script type="text/javascript" src="../bean.js"> </script> </head> <body> <p> Enter capital 'F' or return to cause magic! </p> <form action="/"> <input type="text" value="" name="" id="testField" /> </form> </body> <script type="text/javascript"> var element = elementByID("testField"); var ctrl = clone(StorkController); ctrl.foo = function(controller, key) { console.debug("foo keycode: " + key) alert("Hello, setok"); } ctrl.attach(element); ctrl.bindKey("F", ctrl, "foo"); ctrl.bindKey("<<return>>", ctrl, "foo"); </script> </html>