check ctrl key is pressed  [ 718 views ]

Goal: etxend mouse interaction by handling the ctrl key

  $(document).on('mouseup', function(e) {
    if (e.ctrlKey) {
      alert("CTRL key pressed");
    }
  });
#sidebar a { color:#fff; } #sidebar ul ul li { color: #DEF585; } #sidebar h2 { color: #fff; } #sidebar ul p, #sidebar ul select { color: #BEDDBE; } #backfly { background: url(images/golfBallWallPaper.jpg) left bottom fixed repeat-x #65a51d; }