feature: implement ctrl+k

This commit is contained in:
Jean-Baptiste Pasquier 2021-04-15 21:58:19 +02:00
parent a752e44e06
commit 781930e59d

View File

@ -0,0 +1,9 @@
document.addEventListener("keydown", function (e) {
/*
CTRL + K : Focus on the user search
*/
if(e.ctrlKey && e.key == "k") {
document.querySelector('#general-search input[type="text"]').focus();
e.preventDefault();
}
});