From ff10de6cc2d12e9566a167eb5f02e2ec3d8c1e30 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 30 Nov 2020 15:08:57 +0200 Subject: DocumentWidget: Clear input focus when clicking If the document handles a left click, clear input focus from any widget that had it. IssueID #51 --- src/ui/documentwidget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 0a7be185..1c325206 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c @@ -2337,6 +2337,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e closeMenu_Widget(d->menu); } if (!isMoved_Click(&d->click)) { + setFocus_Widget(NULL); if (d->hoverLink) { const iGmLinkId linkId = d->hoverLink->linkId; iAssert(linkId); -- cgit v1.2.3