0 Replies Latest reply on Dec 11, 2007 5:39 AM by Nirav_Upadhyay

    Keydown for SHIFT + Delete

    Nirav_Upadhyay
      I want to delete drawn element when i click Shift key with Delete key. Means Shift + Delete.
      Shift should be pressed when i press delete key.
      How can i do it?
      Right now i am doing.
      private function onKeyDown(e:KeyboardEvent):void{
      if(Keyboard.SHIFT && e.keyCode == Keyboard.DELETE)
      {
      this.deleteAllFocusedItems();
      }
      }

      But still its not working. Elements getting deleted when i click on Delete key whether Shift key is pressed or not.