Difference between revisions of "Template:Sidebar"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
| Line 331: | Line 331: | ||
} | } | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
// function doc_keyUp(e) { | // function doc_keyUp(e) { | ||
| Line 365: | Line 359: | ||
collapseAll() | collapseAll() | ||
// moveSidebarToBody() | // moveSidebarToBody() | ||
| + | |||
| + | document.addEventListener("keydown", function(event) { | ||
| + | if (event.ctrlKey && event.code === "KeyB") { | ||
| + | alert('Alt + X pressed!'); | ||
| + | event.preventDefault(); | ||
| + | } | ||
| + | }); | ||
}); | }); | ||
</script> | </script> | ||
Revision as of 01:18, 9 March 2021