aw-wizard-forms 4.11.0 → 4.12.0

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.
@@ -1317,6 +1317,9 @@ class KeyboardController {
1317
1317
  if (isTextarea && this._config.blockEnterOnTextarea) {
1318
1318
  return;
1319
1319
  }
1320
+ if (activeElement?.tagName === "BUTTON") {
1321
+ return;
1322
+ }
1320
1323
  if (this._config.onEnter) {
1321
1324
  e2.preventDefault();
1322
1325
  this._config.onEnter();
@@ -5546,8 +5549,9 @@ let WfSelect = class extends FormInputBase {
5546
5549
  }
5547
5550
  break;
5548
5551
  case "Escape":
5549
- e2.preventDefault();
5550
5552
  if (this._open) {
5553
+ e2.preventDefault();
5554
+ e2.stopPropagation();
5551
5555
  this._close();
5552
5556
  this.shadowRoot?.querySelector(".wf-select-trigger")?.focus();
5553
5557
  }