summaryrefslogtreecommitdiff
path: root/src/ui/uploadwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-24 11:21:28 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-24 11:21:28 +0300
commit673ef41425fc6f35aa539ff32f40d0ae5b8e63de (patch)
tree22d4631736d0338876fff24ebdfe78969d1df94f /src/ui/uploadwidget.c
parent25f8c7550569fa82d3496d215ab43825a9b73f36 (diff)
InputWidget: Focus, cursor and scrolling
Tweak that lets a single-line editor (URL field) keep its first line visible when unfocused.
Diffstat (limited to 'src/ui/uploadwidget.c')
-rw-r--r--src/ui/uploadwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/uploadwidget.c b/src/ui/uploadwidget.c
index 91597630..391a5800 100644
--- a/src/ui/uploadwidget.c
+++ b/src/ui/uploadwidget.c
@@ -224,7 +224,7 @@ static iBool processEvent_UploadWidget_(iUploadWidget *d, const SDL_Event *ev) {
224 setUrlPort_UploadWidget_(d, &d->originalUrl, arg_Command(cmd)); 224 setUrlPort_UploadWidget_(d, &d->originalUrl, arg_Command(cmd));
225 } 225 }
226 else { 226 else {
227 makeValueInput_Widget(w, 227 makeValueInput_Widget(root_Widget(w),
228 collectNewFormat_String("%u", titanPortForUrl_(&d->originalUrl)), 228 collectNewFormat_String("%u", titanPortForUrl_(&d->originalUrl)),
229 uiHeading_ColorEscape "${heading.uploadport}", 229 uiHeading_ColorEscape "${heading.uploadport}",
230 "${dlg.uploadport.msg}", 230 "${dlg.uploadport.msg}",