Author Topic: build prompt moves focus from editor window  (Read 2166 times)

IkerAriz

  • Senior Community Member
  • Posts: 159
  • Hero Points: 6
build prompt moves focus from editor window
« on: May 11, 2018, 02:24:24 PM »
Hello all,

The "prompt" directive is a very convenient feature that I use to supply input to my project's build script. Eg:

Code: [Select]
./build-script.sh -o- %(prompt prompt-text:%(last-prompt-result))

However, every time I run the build (ie, Ctrl-M) the window focus moves away from the editor window. As a result, hitting "Ctrl-Shift-Down" to jump to the next error doesn't work. One can click on the editor window (or hit escape) but it would be nice if focus were restored to where it was when I ran the build.

Regards,
Iker

IkerAriz

  • Senior Community Member
  • Posts: 159
  • Hero Points: 6
Re: build prompt moves focus from editor window
« Reply #1 on: June 21, 2018, 05:41:42 PM »
Hello all,

Any news on this issue?

Thanks,
Iker

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6879
  • Hero Points: 530
Re: build prompt moves focus from editor window
« Reply #2 on: June 22, 2018, 12:05:31 AM »
Interesting. This issue only occurs on Unix (not Windows or Mac). I've added a hotfix for this which will go into the hotfix next build. If there are multiple prompts, this hotfix won't work.

IkerAriz

  • Senior Community Member
  • Posts: 159
  • Hero Points: 6
Re: build prompt moves focus from editor window
« Reply #3 on: June 22, 2018, 03:29:31 PM »
Thanks Clark.

In the same area... if I hit escape/cancel at the prompt the build continues as if "%(prompt)" had expanded to empty. Can this behavior be changed so that the build itself is canceled?

Iker

SlickEdit Support

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 384
  • Hero Points: 29
Re: build prompt moves focus from editor window
« Reply #4 on: June 22, 2018, 07:09:07 PM »
PM sent.

IkerAriz

  • Senior Community Member
  • Posts: 159
  • Hero Points: 6
Re: build prompt moves focus from editor window
« Reply #5 on: June 22, 2018, 10:09:17 PM »
Tested both fixes and they work. Ie, focus returns to editor tab after build prompt closes and canceling the build prompt cancels the build.

Thanks!

Iker

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6879
  • Hero Points: 530
Re: build prompt moves focus from editor window
« Reply #6 on: June 23, 2018, 02:15:14 AM »
Glad they work for you!