summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/documentwidget.c31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 0c4dee89..1504426f 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1882,25 +1882,28 @@ static void checkResponse_DocumentWidget_(iDocumentWidget *d) {
1882 uiTextCaution_ColorEscape "${dlg.input.send}", 1882 uiTextCaution_ColorEscape "${dlg.input.send}",
1883 format_CStr("!document.input.submit doc:%p", d)); 1883 format_CStr("!document.input.submit doc:%p", d));
1884 iWidget *buttons = findChild_Widget(dlg, "dialogbuttons"); 1884 iWidget *buttons = findChild_Widget(dlg, "dialogbuttons");
1885 iLabelWidget *lineBreak; 1885 iLabelWidget *lineBreak = NULL;
1886 /* The line break and URL length counters are positioned differently on mobile. */ 1886 if (statusCode != sensitiveInput_GmStatusCode) {
1887 if (deviceType_App() == desktop_AppDeviceType) { 1887 /* The line break and URL length counters are positioned differently on mobile.
1888 lineBreak = new_LabelWidget("${dlg.input.linebreak}" 1888 There is no line breaks in sensitive input. */
1889 uiTextAction_ColorEscape 1889 if (deviceType_App() == desktop_AppDeviceType) {
1890 " " shiftReturn_Icon, 1890 lineBreak = new_LabelWidget("${dlg.input.linebreak}"
1891 NULL); 1891 uiTextAction_ColorEscape
1892 insertChildAfter_Widget(buttons, iClob(lineBreak), 0); 1892 " " shiftReturn_Icon,
1893 } 1893 NULL);
1894 else { 1894 insertChildAfter_Widget(buttons, iClob(lineBreak), 0);
1895 lineBreak = new_LabelWidget("${dlg.input.linebreak}", "text.insert arg:10"); 1895 }
1896 else {
1897 lineBreak = new_LabelWidget("${dlg.input.linebreak}", "text.insert arg:10");
1898 }
1899 setFlags_Widget(as_Widget(lineBreak), frameless_WidgetFlag, iTrue);
1900 setTextColor_LabelWidget(lineBreak, uiTextDim_ColorId);
1896 } 1901 }
1897 setFlags_Widget(as_Widget(lineBreak), frameless_WidgetFlag, iTrue);
1898 setTextColor_LabelWidget(lineBreak, uiTextDim_ColorId);
1899 setId_Widget(addChildPosFlags_Widget(buttons, 1902 setId_Widget(addChildPosFlags_Widget(buttons,
1900 iClob(new_LabelWidget("", NULL)), 1903 iClob(new_LabelWidget("", NULL)),
1901 front_WidgetAddPos, frameless_WidgetFlag), 1904 front_WidgetAddPos, frameless_WidgetFlag),
1902 "valueinput.counter"); 1905 "valueinput.counter");
1903 if (deviceType_App() != desktop_AppDeviceType) { 1906 if (lineBreak && deviceType_App() != desktop_AppDeviceType) {
1904 addChildPos_Widget(buttons, iClob(lineBreak), front_WidgetAddPos); 1907 addChildPos_Widget(buttons, iClob(lineBreak), front_WidgetAddPos);
1905 } 1908 }
1906 setValidator_InputWidget(findChild_Widget(dlg, "input"), inputQueryValidator_, d); 1909 setValidator_InputWidget(findChild_Widget(dlg, "input"), inputQueryValidator_, d);