@whitesev/utils 2.1.4 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5030,7 +5030,7 @@ var Utils = (function () {
5030
5030
  });
5031
5031
  return result;
5032
5032
  }
5033
- listenKeyboard(target, eventName = "keypress", callback) {
5033
+ listenKeyboard(target, eventName = "keypress", callback, options) {
5034
5034
  if (typeof target !== "object" ||
5035
5035
  (typeof target["addEventListener"] !== "function" &&
5036
5036
  typeof target["removeEventListener"] !== "function")) {
@@ -5056,7 +5056,7 @@ var Utils = (function () {
5056
5056
  callback(keyName, keyValue.toString(), otherCodeList, event);
5057
5057
  }
5058
5058
  };
5059
- target.addEventListener(eventName, keyEvent);
5059
+ target.addEventListener(eventName, keyEvent, options);
5060
5060
  return {
5061
5061
  removeListen() {
5062
5062
  target.removeEventListener(eventName, keyEvent);