0 Replies Latest reply on Jun 28, 2015 11:04 AM by Whatevermajorloser

    Script UI dialog button keyboard shortcuts not working..

    Whatevermajorloser

      Hello,

       

      I've tried adding keyboard shortcuts to the buttons in my dialogs using the following code at the end of each button:

       

      .shortcutKey = "1";
      
      


      Like so:


      dlg.btnPnl.TieOutfit = dlg.btnPnl.add('button', [6,0,201,20], 'Tie Oufit', {name:'ok'}); dlg.btnPnl.TieOutFit.shortcutKey = "1"; // Tie Outfit
      
      

       

      Nothing happens when I press 1, or Cmd + 1. I've tested this on both Photoshop CC 2015 and CS6.

       

      A bit stuck here and would really appreciate some help!