Skip to content

Commit

Permalink
Merge pull request #12 from super-ppx/master
Browse files Browse the repository at this point in the history
events.onKeyUp示例代码错误
  • Loading branch information
hyb1996 authored Dec 14, 2018
2 parents 23df22a + d08817a commit 49bec0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ <h2>events.onKeyDown(keyName, listener)<span><a class="mark" href="#events_event
<pre><code>//启用按键监听
events.observeKey();
//监听音量下键弹起
events.onKeyDown(&quot;volume_down&quot;, function(event){
toast(&quot;音量上键弹起&quot;);
events.onKeyUp(&quot;volume_down&quot;, function(event){
toast(&quot;音量下键弹起&quot;);
});
//监听Home键弹起
events.onKeyDown(&quot;home&quot;, function(event){
events.onKeyUp(&quot;home&quot;, function(event){
toast(&quot;Home键弹起&quot;);
exit();
});
Expand Down Expand Up @@ -610,4 +610,4 @@ <h1>events.broadcast: 脚本间广播<span><a class="mark" href="#events_events_
<script>highlight(undefined, undefined, 'pre');</script>
<!-- __TRACKING__ -->
</body>
</html>
</html>

0 comments on commit 49bec0e

Please sign in to comment.