Close a registered modal layer by its ID.
Removes the modal layer and restores keyboard control to the layers and screen below it.
const { closeModalLayer } = useScreenSystem();// from the modal element's own key binding:boundKeyboard(['q'], () => closeModalLayer('confirm-dialog')); Copy
const { closeModalLayer } = useScreenSystem();// from the modal element's own key binding:boundKeyboard(['q'], () => closeModalLayer('confirm-dialog'));
Close a registered modal layer by its ID.
Removes the modal layer and restores keyboard control to the layers and screen below it.