With the focusmanager the focus can be stored in a document, recalled and moved.
You can create the object via the monster namespace new Monster.DOM.FocusManager()
.
<script type="module">
import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
new Monster.DOM.FocusManager()
</script>
Alternatively, you can also integrate this object individually.
<script type="module">
import {FocusManager} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/focusmanager.js';
new FocusManager()
</script>