diff --git a/src/index.es7 b/src/index.js similarity index 98% rename from src/index.es7 rename to src/index.js index bee0bf2..f40e836 100644 --- a/src/index.es7 +++ b/src/index.js @@ -85,7 +85,7 @@ export default class Keyboard { if (tmp) { end = true // 第2组一定有回调,无需判断 - next.fn.forEach(function(fn) { + next.fn.forEach(function (fn) { fn(ev) }) break @@ -103,7 +103,7 @@ export default class Keyboard { } // 有回调就触发 if (item.fn) { - item.fn.forEach(function(fn) { + item.fn.forEach(function (fn) { fn(ev) }) } diff --git a/src/key.dict.es7 b/src/key.dict.js similarity index 100% rename from src/key.dict.es7 rename to src/key.dict.js