mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
* Remove docs folder. This was a redirect from a GitHub pages site that does not appear to be in use. * Rename api folder to api-samples. * Move examples to functional-samples folder. * Move cookbook sample to functional-samples. * Move tutorials to functional-samples folder. * Move mv2 and apps folders to _archive. * Rename tools folder to .repo. * Move reference folder to functional-samples. * Update README. Update README with new relative links for reorg. * Update README.md Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com> --------- Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>
42 lines
984 B
HTML
42 lines
984 B
HTML
<!DOCTYPE html>
|
|
<!-- Simple keyboard state handler, Vincent Scheib. -->
|
|
<!-- Adapted from http://www.cryer.co.uk/resources/javascript/script20_respond_to_keypress.htm -->
|
|
<html>
|
|
<head>
|
|
<style>
|
|
body {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
overflow: auto;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Last events:</h1>
|
|
<table border="1" cellspacing="0">
|
|
<tbody>
|
|
<tr>
|
|
<th>KeyDown</th>
|
|
<th>KeyUp</th>
|
|
<th>KeyPress</th>
|
|
</tr>
|
|
<tr>
|
|
<td id="td-keydown" style="width: 12em" class="center">.</td>
|
|
<td id="td-keyup" style="width: 12em" class="center">.</td>
|
|
<td id="td-keypress" style="width: 12em" class="center">.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<h1>Dictionary of all key's state:</h1>
|
|
<pre id="keyStateDisplay">No key events captured yet.</pre>
|
|
|
|
<h1>Log of events:</h1>
|
|
<div id="keyLog"></div>
|
|
<script src="window.js"></script>
|
|
</body>
|
|
</html>
|