Merge pull request #345 from user670/patch-1

Update api.md
This commit is contained in:
Zhang Chen 2019-04-11 16:14:31 +08:00 committed by GitHub
commit 205b72356c
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)