=> bbd7c82c7da273408ea965a9db368a35f8236943
[1mdiff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c[m [1mindex 1f3e0e37..7c071f47 100644[m [1m--- a/src/ui/documentwidget.c[m [1m+++ b/src/ui/documentwidget.c[m [36m@@ -3273,9 +3273,11 @@[m [mstatic void checkResponse_DocumentWidget_(iDocumentWidget *d) {[m setTextColor_LabelWidget(menu, uiTextAction_ColorId);[m }[m }[m [31m- setValidator_InputWidget(findChild_Widget(dlg, "input"), inputQueryValidator_, d);[m [31m- setSensitiveContent_InputWidget(findChild_Widget(dlg, "input"),[m [31m- statusCode == sensitiveInput_GmStatusCode);[m [32m+[m[32m iInputWidget *input = findChild_Widget(dlg, "input");[m [32m+[m[32m setValidator_InputWidget(input, inputQueryValidator_, d);[m [32m+[m[32m setBackupFileName_InputWidget(input, "inputbackup.txt");[m [32m+[m[32m setSelectAllOnFocus_InputWidget(input, iTrue);[m [32m+[m[32m setSensitiveContent_InputWidget(input, statusCode == sensitiveInput_GmStatusCode);[m if (document_App() != d) {[m postCommandf_App("tabs.switch page:%p", d);[m }[m [1mdiff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c[m [1mindex 6a8d428a..1b68ff57 100644[m [1m--- a/src/ui/inputwidget.c[m [1m+++ b/src/ui/inputwidget.c[m [36m@@ -1201,6 +1201,11 @@[m [mvoid selectAll_InputWidget(iInputWidget *d) {[m #endif[m }[m [m [32m+[m[32mvoid deselect_InputWidget(iInputWidget *d) {[m [32m+[m[32m iZap(d->mark);[m [32m+[m[32m refresh_Widget(as_Widget(d));[m [32m+[m[32m}[m [32m+[m void validate_InputWidget(iInputWidget *d) {[m if (d->validator) {[m d->validator(d, d->validatorContext); /* this may change the contents */[m [1mdiff --git a/src/ui/inputwidget.h b/src/ui/inputwidget.h[m [1mindex 000fa4b7..832f7853 100644[m [1m--- a/src/ui/inputwidget.h[m [1m+++ b/src/ui/inputwidget.h[m [36m@@ -59,6 +59,7 @@[m [mvoid setBackupFileName_InputWidget (iInputWidget *, const char *fileName);[m void begin_InputWidget (iInputWidget *);[m void end_InputWidget (iInputWidget *, iBool accept);[m void selectAll_InputWidget (iInputWidget *);[m [32m+[m[32mvoid deselect_InputWidget (iInputWidget *);[m void validate_InputWidget (iInputWidget *);[m [m void setSelectAllOnFocus_InputWidget (iInputWidget *, iBool selectAllOnFocus);[m [1mdiff --git a/src/ui/util.c b/src/ui/util.c[m [1mindex 94e4b00c..de755b3f 100644[m [1m--- a/src/ui/util.c[m [1m+++ b/src/ui/util.c[m [36m@@ -1712,13 +1712,14 @@[m [miLabelWidget *addDialogTitle_Widget(iWidget *dlg, const char *text, const char *[m }[m [m static void acceptValueInput_(iWidget *dlg) {[m [31m- const iInputWidget *input = findChild_Widget(dlg, "input");[m [32m+[m[32m iInputWidget *input = findChild_Widget(dlg, "input");[m if (!isEmpty_String(id_Widget(dlg))) {[m const iString *val = text_InputWidget(input);[m postCommandf_App("%s arg:%d value:%s",[m cstr_String(id_Widget(dlg)),[m toInt_String(val),[m cstr_String(val));[m [32m+[m[32m setBackupFileName_InputWidget(input, NULL);[m }[m }[m [m [36m@@ -1782,6 +1783,7 @@[m [miBool valueInputHandler_(iWidget *dlg, const char *cmd) {[m else if (equal_Command(cmd, "valueinput.set")) {[m iInputWidget *input = findChild_Widget(dlg, "input");[m setTextUndoableCStr_InputWidget(input, suffixPtr_Command(cmd, "text"), iTrue);[m [32m+[m[32m deselect_InputWidget(input);[m validate_InputWidget(input);[m return iTrue;[m }[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).