While script window is launched, pressing Alt+Tab and using Enter in other programs forces Script to catch Enter when you Alt+Tab back to it

  • 1
  • Problem
  • Updated 2 years ago
  • (Edited)
Happens in Windows on recent CC, doesn't happen on Mac.
Doesn't happen in AI at all.
Script contains this code:
var ok = btns.add('button', undefined, 'OK');
ok.active = true;

I launch it and leave window be.
Then I switch to any messenger (Skype, Telegram, whatever), send some messages and Alt+Tab back.
Script window immediately visually 'presses' Enter button and runs, when I surely didn't want.
Photo of Egor Chistyakov

Egor Chistyakov

  • 2 Posts
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of Kukurykus


  • 664 Posts
  • 183 Reply Likes
I don't remember now exactly what keys are causing ran script breaks its performance, but it happened to me not once when I wanted to leave (or be back to) Ps by either Alt-Tab or Win-D.