← Về thư mục
frontend/src/features/chrome/modal.ts
- ModalFocusEntry · type · L12-L12 — type ModalFocusEntry = { el: HTMLElement; prev: Element | null };
- EscapeBlocker · type · L33-L33 — type EscapeBlocker = () => boolean;
- addModalEscapeBlocker · function · L37-L39 — function addModalEscapeBlocker(fn: EscapeBlocker): void
- resetModalTrap · function · L41-L43 — function resetModalTrap(): void
- ModalKeyEvent · type · L45-L49 — type ModalKeyEvent = { key: string; shiftKey?: boolean; preventDefault: () => void; };
- _focusables · function · L52-L62 — function _focusables(root: Element | null): HTMLElement[]
- focusNode · function · L64-L74 — function focusNode(node: HTMLElement): void
- openModalEl · function · L77-L97 — function openModalEl(modal: HTMLElement | null): void
- closeModalEl · function · L100-L120 — function closeModalEl(modal: HTMLElement | null): void
- autocompleteOpen · function · L122-L125 — function autocompleteOpen(): boolean
- escapeBlocked · function · L127-L132 — function escapeBlocked(): boolean
- visibleFallbackModal · function · L134-L140 — function visibleFallbackModal(): HTMLElement | null
- trapModalKeydown · function · L143-L179 — function trapModalKeydown(e: ModalKeyEvent | KeyboardEvent): void
- bindModalDismiss · function · L182-L188 — function bindModalDismiss(modal: HTMLElement | null, closeBtn?: HTMLElement | null): void
- anyModalOpen · function · L190-L196 — function anyModalOpen(): boolean