Difference between revisions of "Template:Sidebar"

From Sinfronteras
Jump to: navigation, search
Line 331: Line 331:
 
       }
 
       }
 
        
 
        
 +
      // document.addEventListener("keydown", function(event) {
 +
      //  if (event.ctrlKey && event.code === "KeyB") {
 +
      //    alert('Alt + X pressed!');
 +
      //    event.preventDefault();
 +
      //  }
 +
      // });
 +
 +
      // function aver(){
 +
      //  $('body').keypress(function(e) {
 +
      //    var c = String.fromCharCode(e.which);
 +
      //    if (c.toUpperCase() === c && c.toLowerCase() !== c && !e.shiftKey) {
 +
      //      alert('Alt + X pressed!');
 +
      //    }
 +
      //  });
 +
      // }
  
 
       // function doc_keyUp(e) {
 
       // function doc_keyUp(e) {
Line 359: Line 374:
 
           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 02:25, 9 March 2021



Expand

Previous version without <html> tag: