🚸 Set Ctrl+F shortcut to focus search input

master
KaKi87 10 months ago
parent 03e7568550
commit e2f97907d0
  1. 6
      index.html

@ -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">

Loading…
Cancel
Save