From a710e5e8939c68329aab742c2fc3430a36e0d80c Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 11 Dec 2024 09:25:58 +0200 Subject: [PATCH] move focus from navigation entry on page load request --- src/app/browser/window/tab/item/page.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index adf6cf91..aaa37f98 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -30,7 +30,7 @@ use gtk::{ gformat, GString, Priority, Regex, RegexCompileFlags, RegexMatchFlags, Uri, UriFlags, UriHideFlags, }, - prelude::{EditableExt, FileExt, SocketClientExt}, + prelude::{EditableExt, FileExt, SocketClientExt, WidgetExt}, }; use sqlite::Transaction; use std::{rc::Rc, time::Duration}; @@ -157,6 +157,9 @@ impl Page { /// * every protocol implementation has own value checker, according to specification const DEFAULT_MAX_REDIRECT_COUNT: usize = 10; + // Move focus out from navigation entry + self.navigation.reload.widget.gobject.grab_focus(); + // Reset widgets self.input.unset();