Skip to content

deselect

Deselects the current browser selection and returns function that restores selection.

Usage

const restore = toggleSelection(); // Store the user's selection and deselect it
restore(); // Restore focus to the user's selection

Installation

Terminal window
npx atmx add helper deselect