Example
An event listener on the button opens the menu on click.
In code
document.addEventListener('keydown', e => {
if (e.key === '/') searchBox.focus();
});
That is how the Lexikon search reacts to the / key.
Learn more
Related terms
Added 2026-11-26 · Last reviewed 2026-11-30