Page 1 of 1

'Hold Shift' affects script operation

Posted: 29 Sep 2015 17:22
by Papoulka
I have a toolbar button script that internally uses "goto <xydata>;". If I launch this script with the Shift key held down, the goto works but creates an unwanted new tab.

This is evidently because the keyboard shortcut of "Hold Shift = Open the location you are going to in a new tab" is having an effect even during script operation. I can't be sure if that's intended or not, but the net effect seems to be unwanted so I'm posting this as a bug.

The reason I would launch a script with Shift held is to guide what the script should do (pop confirmations or not, etc). And I can't release the Shift key in time to avoid interfering with the "goto" commands.

Re: 'Hold Shift' affects script operation

Posted: 01 Nov 2015 12:05
by admin
Papoulka wrote:The reason I would launch a script with Shift held is to guide what the script should do (pop confirmations or not, etc). And I can't release the Shift key in time to avoid interfering with the "goto" commands.
I don 't get the first part. What is the effect of holding Shift?

But anyway, holding Shift will create a new tab when going anywhere, that's kind of a global behavior in XY. This will have to stay like this.

Re: 'Hold Shift' affects script operation

Posted: 01 Nov 2015 20:41
by Papoulka
OK, I understand that this can't be changed.

To explain anyway: Most of my scripts have a confirmation step. But, if I launch them while holding "Shift", that tells the script to skip the confirmations. This lets me work fast when I'm sure of my material. It's just unfortunate that a "goto" in a script will also see this Shift and generate a new tab.

I may change to using 'Alt' to bypass confirmations.