4 Replies Latest reply on Feb 17, 2016 9:04 PM by Sajeev Sridharan

    Is there any function called startPropagation...

    Sajeev Sridharan Level 4

      Hi,

       

      I have prevent executing the menu items using the below script (source: Prevent executing menu items | IndiSnip [InDesign® Snippets])

       

      #targetengine disableItems
      var disableNew = app.menuActions.itemByID(257).addEventListener("beforeInvoke", stopMenuEvent);
      function stopMenuEvent(stopMenuEvent){
          stopMenuEvent.stopPropagation();
          stopMenuEvent.preventDefault();
      }
      
      

       

       

      I want to access the same menu item without closing InDesign application. Is there any function called startPropagation()?

       

      Kindly advice.

       

      Thanks in advance,

      Sajeev