Describe the problem or limitation you are having in your project
When hitting an error, breakpoint, or failed assert, the script editor instantly gets mouse/keyboard focus.
This often causes you to accidentally start typing into the script.
If you're clicking/dragging the mouse when this happens, you can easily start selecting and overwriting multiple lines.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Highlight the error, breakpoint, or assert line, but don't give the script editor focus until after a 0.5 second (or so) delay.
The delay could be configured/disabled in Project Settings.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
If this enhancement will not be used often, can it be worked around with a few lines of script?
No.
You can undo the accidental changes, but that's only if you realize you've accidentally made a change.
Is there a reason why this should be core and not an add-on in the asset library?
I think this is a common enough problem to be core.
Describe the project you are working on
N/A. Applies to any project.
Describe the problem or limitation you are having in your project
When hitting an error,
breakpoint
, or failedassert
, the script editor instantly gets mouse/keyboard focus. This often causes you to accidentally start typing into the script. If you're clicking/dragging the mouse when this happens, you can easily start selecting and overwriting multiple lines.Describe the feature / enhancement and how it helps to overcome the problem or limitation
Highlight the error,
breakpoint
, orassert
line, but don't give the script editor focus until after a 0.5 second (or so) delay. The delay could be configured/disabled inProject Settings
.Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
If this enhancement will not be used often, can it be worked around with a few lines of script?
No. You can undo the accidental changes, but that's only if you realize you've accidentally made a change.
Is there a reason why this should be core and not an add-on in the asset library?
I think this is a common enough problem to be core.