@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.
package/dist/index.amd.js CHANGED
@@ -5029,7 +5029,7 @@ define((function () { 'use strict';
5029
5029
  });
5030
5030
  return result;
5031
5031
  }
5032
- listenKeyboard(target, eventName = "keypress", callback) {
5032
+ listenKeyboard(target, eventName = "keypress", callback, options) {
5033
5033
  if (typeof target !== "object" ||
5034
5034
  (typeof target["addEventListener"] !== "function" &&
5035
5035
  typeof target["removeEventListener"] !== "function")) {
@@ -5055,7 +5055,7 @@ define((function () { 'use strict';
5055
5055
  callback(keyName, keyValue.toString(), otherCodeList, event);
5056
5056
  }
5057
5057
  };
5058
- target.addEventListener(eventName, keyEvent);
5058
+ target.addEventListener(eventName, keyEvent, options);
5059
5059
  return {
5060
5060
  removeListen() {
5061
5061
  target.removeEventListener(eventName, keyEvent);