diff --git a/static/src/index.js b/static/src/index.js index 746ae2d7..c7e8bf81 100644 --- a/static/src/index.js +++ b/static/src/index.js @@ -200,6 +200,11 @@ async function home() { `; } }); + document.body.addEventListener('keyup', function(event) { + if (event.keyCode == 191) { + document.querySelector('input').focus(); + }; + }); }; }; @@ -235,4 +240,4 @@ function parseCookies(str = '') { const map = new Map(); str.split('; ').forEach(cookie => map.set(...cookie.split('='))); return map; -}; \ No newline at end of file +};