summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r--src/ui/inputwidget.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c
index 6e9ef6c2..802a2d6c 100644
--- a/src/ui/inputwidget.c
+++ b/src/ui/inputwidget.c
@@ -1565,6 +1565,11 @@ static iBool processEvent_InputWidget_(iInputWidget *d, const SDL_Event *ev) {
1565 } 1565 }
1566 switch (processEvent_Click(&d->click, ev)) { 1566 switch (processEvent_Click(&d->click, ev)) {
1567 case none_ClickResult: 1567 case none_ClickResult:
1568 if (ev->type == SDL_MOUSEBUTTONUP &&
1569 deviceType_App() != desktop_AppDeviceType && isFocused_Widget(d)) {
1570 setFocus_Widget(NULL);
1571 return iTrue;
1572 }
1568 break; 1573 break;
1569 case started_ClickResult: { 1574 case started_ClickResult: {
1570 setFocus_Widget(w); 1575 setFocus_Widget(w);