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

IkerAriz

  • Senior Community Member
  • Posts: 128
  • Hero Points: 5
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: 128
  • Hero Points: 5
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: 4407
  • Hero Points: 331
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: 128
  • Hero Points: 5
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: 262
  • Hero Points: 24
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: 128
  • Hero Points: 5
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: 4407
  • Hero Points: 331
Re: build prompt moves focus from editor window
« Reply #6 on: June 23, 2018, 02:15:14 am »
Glad they work for you!