Update api.md

fix copy paste fail
This commit is contained in:
user670 2019-04-08 19:52:16 +08:00 committed by GitHub
parent c5ff01c261
commit 37d5ddd3f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ core.onkeyDown(e)
core.onkeyUp(e)
当放开某个键时的操作e为KeyboardEvent。
请勿直接覆盖或调用此函数,如有需要请注册一个"onkeyDown"的交互函数。
请勿直接覆盖或调用此函数,如有需要请注册一个"onkeyUp"的交互函数。
core.pressKey(keyCode)