🚸 Set Ctrl+F shortcut to focus search input

This commit is contained in:
KaKi87 2021-11-02 14:42:51 +01:00
parent 03e7568550
commit e2f97907d0
1 changed files with 6 additions and 0 deletions

View File

@ -355,6 +355,12 @@
document.querySelector('.app__main__loader').classList.add('app__main__loader--hidden');
});
document.addEventListener('keydown', event => {
if(event.ctrlKey && event.key === 'f'){
event.preventDefault();
document.querySelector('.app__header__search__input').focus();
}
});
</script>
</head>
<body class="app">