isEditableTarget(target, { widgets }) and isInsideOrBehindModal(target) for page-wide shortcuts: skips fields, contenteditable, ARIA text boxes and (optionally) widgets that use arrow keys, and stays quiet while a modal layer is open. rememberOpener/returnToOpener put focus back where it was when a modal opened without a Trigger.
pnpm dlx shadcn@latest add "https://s7ui.nijland.cc/r/keyboard-utils.json"