From 6a0ed4f304baa4f9019a2a027df20127bcea9369 Mon Sep 17 00:00:00 2001 From: oc Date: Wed, 24 Jan 2018 20:03:05 +0800 Subject: [PATCH] Fix Events.js Bug --- libs/events.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/events.js b/libs/events.js index 422bd1ff..369ab144 100644 --- a/libs/events.js +++ b/libs/events.js @@ -1174,16 +1174,15 @@ events.prototype.keyDownShop = function (keycode) { ////// 商店界面时,放开某个键的操作 ////// events.prototype.keyUpShop = function (keycode) { if (keycode==27 || keycode==88) { - if (core.status.event.data.actions.length>0) { core.status.route.push("shop:"+core.status.event.data.id+":"+core.status.event.data.actions.join("")); } - if (core.status.event.data.fromList) { - core.status.boxAnimateObjs = []; - core.setBoxAnimate(); + core.status.boxAnimateObjs = []; + core.setBoxAnimate(); + + if (core.status.event.data.fromList) core.ui.drawQuickShop(); - } else core.ui.closePanel(); return;