Difference between revisions of "Template:Sidebar"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
Line 332: | Line 332: | ||
function doc_keyUp(e) { | function doc_keyUp(e) { | ||
− | // | + | // This would test for whichever key is 40 (down arrow) and the ctrl key at the same time |
if (e.ctrlKey && e.key === 'ArrowDown') { | if (e.ctrlKey && e.key === 'ArrowDown') { | ||
− | // | + | // Call your function to do the thing |
− | $('#menu').css({'cssText':'display: block'}); | + | $('#menu').css({'cssText':'display: block !important'}); |
} | } | ||
} | } | ||
− | // | + | // Register the handler |
document.addEventListener('keyup', doc_keyUp, false); | document.addEventListener('keyup', doc_keyUp, false); | ||
Revision as of 00:34, 9 March 2021