diff --git a/libs/actions.js b/libs/actions.js index 5b8a3ede..d4f024a3 100644 --- a/libs/actions.js +++ b/libs/actions.js @@ -780,12 +780,6 @@ actions.prototype.clickAction = function (x,y) { ////// 自定义事件时,按下某个键的操作 ////// actions.prototype.keyDownAction = function (keycode) { - // 视为无效 - var startTime = core.status.event.data.startTime||0; - if (startTime>0 && new Date().getTime()-startTime<250) - return; - core.status.event.data.startTime = 0; - if (core.status.event.data.type=='choices') { var data = core.status.event.data.current; var choices = data.choices; diff --git a/libs/events.js b/libs/events.js index a1a3184a..6bdecb9a 100644 --- a/libs/events.js +++ b/libs/events.js @@ -344,7 +344,7 @@ events.prototype.doEvents = function (list, x, y, callback) { core.status.event = {'id': 'action', 'data': { 'list': [ {"todo": core.clone(list), "total": core.clone(list), "condition": "false"} - ], 'x': x, 'y': y, 'callback': callback, 'startTime': new Date().getTime() + ], 'x': x, 'y': y, 'callback': callback }} // 停止勇士