Fix Events.js Bug
This commit is contained in:
parent
4f283b0ffe
commit
6a0ed4f304
@ -1174,16 +1174,15 @@ events.prototype.keyDownShop = function (keycode) {
|
|||||||
////// 商店界面时,放开某个键的操作 //////
|
////// 商店界面时,放开某个键的操作 //////
|
||||||
events.prototype.keyUpShop = function (keycode) {
|
events.prototype.keyUpShop = function (keycode) {
|
||||||
if (keycode==27 || keycode==88) {
|
if (keycode==27 || keycode==88) {
|
||||||
|
|
||||||
if (core.status.event.data.actions.length>0) {
|
if (core.status.event.data.actions.length>0) {
|
||||||
core.status.route.push("shop:"+core.status.event.data.id+":"+core.status.event.data.actions.join(""));
|
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.status.boxAnimateObjs = [];
|
core.setBoxAnimate();
|
||||||
core.setBoxAnimate();
|
|
||||||
|
if (core.status.event.data.fromList)
|
||||||
core.ui.drawQuickShop();
|
core.ui.drawQuickShop();
|
||||||
}
|
|
||||||
else
|
else
|
||||||
core.ui.closePanel();
|
core.ui.closePanel();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user