From e8ec7f31933430cb375b0c311da97e12a8ae5ad8 Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 30 Sep 2024 18:31:48 +0800 Subject: [PATCH] update --- src/{index.es7 => index.js} | 4 ++-- src/{key.dict.es7 => key.dict.js} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename src/{index.es7 => index.js} (98%) rename src/{key.dict.es7 => key.dict.js} (100%) 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