summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-10-12 20:45:54 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-10-12 20:45:54 +0300
commit615426375cb41ae51f46be088998a1cf6111f942 (patch)
tree20fe7707b3629672bf59d53ae2e2a07240bed51e
parent4a3cda29bbf2494061fb1090698cf1230e43a280 (diff)
Clear input focus when switching tabs
-rw-r--r--src/ui/window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 22ad02eb..4165b9e0 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -277,6 +277,7 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) {
277 isRequestOngoing_DocumentWidget(doc) ? stopCStr_ : reloadCStr_); 277 isRequestOngoing_DocumentWidget(doc) ? stopCStr_ : reloadCStr_);
278 updateNavBarIdentity_(navBar); 278 updateNavBarIdentity_(navBar);
279 } 279 }
280 setFocus_Widget(NULL);
280 } 281 }
281 else if (equal_Command(cmd, "mouse.clicked") && arg_Command(cmd)) { 282 else if (equal_Command(cmd, "mouse.clicked") && arg_Command(cmd)) {
282 iWidget *widget = pointer_Command(cmd); 283 iWidget *widget = pointer_Command(cmd);