Scripts: a ScriptUI edit field keeps a refused text after it loses the focus

A text longer than 16 KiB that an edit field gives as it loses the
focus now goes back in the field, with the error in the status bar,
instead of being dropped when the next frame draws the script's old
text. The field keeps it until the person changes it.
This commit is contained in:
dotCooCoo committed 2026-11-22 06:41:16 -08:00
1 parent 7578da1824
commit cd646a9b34
3 files changed
+47 -2

No files matched your search

+2 -1
View File
@@ -2950,7 +2950,8 @@ asks whether to stop the script, and Cancel shows it again with the events it ha
its text) and `value`, then `ui.dialog.confirm`, gives the script that event; a click or a close first gives the
script the text still typed in the dialog's fields. When one of those texts is longer than 16 KiB, the script gets
no event and every field keeps its text: `ui.dialog.confirm`, `ui.dialog.cancel` and `ui.dialog.set` with `action`
return an error, and Escape shows it in the status bar. A disabled or hidden control, a value out of a list's range, a
return an error, and Escape shows it in the status bar. Such a text stays in its field when the field loses the
focus too, with the error in the status bar. A disabled or hidden control, a value out of a list's range, a
list index that is not a whole number and a click on a control that takes none are errors, and the dialog stays
open.