blob: da8f1780f9a7ae9c075271bbd4eda84e03f469e7 [file] [log] [blame]
<!DOCTYPE html>
Copyright (c) 2012 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript" src="example.js"></script>
#listener { float: left; padding-right: 8px; }
<body {{attrs}}>
<h2>Status: <code id="statusField">NO-STATUS</code></h2>
<div id="listener"></div>
<p>This example shows how to handle input events.</p>
<p>Click or touch the box to the left to see the events being sent to the
NaCl module. When it has focus, the module will also accept keyboard
<h2 style="clear: left">Events:</h2>
<pre id="log" style="font-weight: bold"></pre>