User:Headquarter8302/common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
window.addEventListener("keydown", function(event) { | window.addEventListener("keydown", function(event) {switch(event.code) { | ||
case "Slash": | case "Slash": | ||
document.getElementById('searchInput').focus(); | document.getElementById('searchInput').focus(); | ||
} | } | ||
}, true); | }, true); |
Revision as of 00:34, 10 December 2021
window.addEventListener("keydown", function(event) {switch(event.code) { case "Slash": document.getElementById('searchInput').focus(); } }, true);