xref: /openbmc/qemu/docs/sphinx-static/custom.js (revision 7d87775f)
1document.addEventListener('keydown', (event) => {
2    // find a better way to look it up?
3    let search_input = document.getElementsByName('q')[0];
4
5    if (event.code === 'KeyS' && document.activeElement !== search_input) {
6        event.preventDefault();
7        search_input.focus();
8    }
9});
10