mirror of
https://github.com/Leo501/CocosCreatorTutorial.git
synced 2026-05-18 04:35:41 +08:00
完善Creator版本为2.x时,把cc.KEY.back。修改成cc.macro.KEY.back的问题
This commit is contained in:
@@ -22,6 +22,7 @@ cc.Class({
|
||||
|
||||
onKeyDown(event) {
|
||||
switch (event.keyCode) {
|
||||
//注意Creator版本为2.x的请把cc.KEY.back。修改成cc.macro.KEY.back
|
||||
case cc.KEY.back:
|
||||
if (this.isBackGame) {
|
||||
cc.director.end();
|
||||
|
||||
Reference in New Issue
Block a user