From 7ff362911267649d796481a4126fba1e56108786 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 4 Aug 2021 06:49:40 +0300 Subject: InputWidget: Line breaks only make sense in some fields For example, any URL field should disallow line breaks. The line break modifier preference should be disregarded in an input field where there are no line breaks. --- src/ui/uploadwidget.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/ui/uploadwidget.c') diff --git a/src/ui/uploadwidget.c b/src/ui/uploadwidget.c index 7bfa73bd..2780f86a 100644 --- a/src/ui/uploadwidget.c +++ b/src/ui/uploadwidget.c @@ -117,7 +117,6 @@ void init_UploadWidget(iUploadWidget *d) { setFont_InputWidget(d->input, monospace_FontId); setLineLimits_InputWidget(d->input, 7, 20); setHint_InputWidget(d->input, "${hint.upload.text}"); - setEnterInsertsLF_InputWidget(d->input, iTrue); setFixedSize_Widget(as_Widget(d->input), init_I2(120 * gap_UI, -1)); addChild_Widget(page, iClob(d->input)); appendFramelessTabPage_Widget(tabs, iClob(page), "${heading.upload.text}", '1', 0); -- cgit v1.2.3