2 Replies Latest reply on Jun 22, 2007 11:05 AM by Garyl Woolworth

    event.shiftKey always traces false

    Garyl Woolworth Level 1
      Has anybody else had problems with detecting if event.shiftKey is true? It seems ever since I upgraded to 2.0.1 I've lost the ability to see if the user has shift, crtl'd, or alted a key while clicking on something. Below is a function I wrote a good amount of time ago that worked for the longest period of time and it seems that it stopped working just as soon as I upgraded.


      // GLOBAL OPEN LINK FUNCTION
      public function openLink(event:MouseEvent, linkURL:String):void {
      trace(event.shiftKey);
      if(event.shiftKey){
      trace(" You ShiftClicked!!!!");
      var request:URLRequest = new URLRequest(linkURL);
      navigateToURL(request, "_blank");
      }
      }

      That function traces false every time no matter what you got down on the keyboard. Anyone have ideas or similiar problems?