@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.
@@ -5032,7 +5032,7 @@ System.register('Utils', [], (function (exports) {
5032
5032
  });
5033
5033
  return result;
5034
5034
  }
5035
- listenKeyboard(target, eventName = "keypress", callback) {
5035
+ listenKeyboard(target, eventName = "keypress", callback, options) {
5036
5036
  if (typeof target !== "object" ||
5037
5037
  (typeof target["addEventListener"] !== "function" &&
5038
5038
  typeof target["removeEventListener"] !== "function")) {
@@ -5058,7 +5058,7 @@ System.register('Utils', [], (function (exports) {
5058
5058
  callback(keyName, keyValue.toString(), otherCodeList, event);
5059
5059
  }
5060
5060
  };
5061
- target.addEventListener(eventName, keyEvent);
5061
+ target.addEventListener(eventName, keyEvent, options);
5062
5062
  return {
5063
5063
  removeListen() {
5064
5064
  target.removeEventListener(eventName, keyEvent);