@eagami/ui 5.82.2 → 5.82.3
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/fesm2022/eagami-ui.mjs
CHANGED
|
@@ -14892,6 +14892,10 @@ var MenuComponent = class MenuComponent {
|
|
|
14892
14892
|
const list = this.listEl()?.nativeElement;
|
|
14893
14893
|
const active = document.activeElement;
|
|
14894
14894
|
if (!list || !active || !list.contains(active)) return;
|
|
14895
|
+
if (event.key === "Tab") {
|
|
14896
|
+
if (!this.asContextMenu()) this.close(true);
|
|
14897
|
+
return;
|
|
14898
|
+
}
|
|
14895
14899
|
const items = this.getEnabledItems();
|
|
14896
14900
|
if (items.length === 0) return;
|
|
14897
14901
|
const current = items.indexOf(active);
|
|
@@ -18995,6 +18999,9 @@ var DropdownComponent = class DropdownComponent extends LabelledFieldControlBase
|
|
|
18995
18999
|
this.elRef()?.nativeElement.focus();
|
|
18996
19000
|
}
|
|
18997
19001
|
break;
|
|
19002
|
+
case "Tab":
|
|
19003
|
+
if (this.isOpen()) this.close();
|
|
19004
|
+
break;
|
|
18998
19005
|
case "Home":
|
|
18999
19006
|
event.preventDefault();
|
|
19000
19007
|
if (!this.isOpen()) this.toggle();
|