move focus from navigation entry on page load request

This commit is contained in:
yggverse 2024-12-11 09:25:58 +02:00
parent b8d9d06bf2
commit a710e5e893

View File

@ -30,7 +30,7 @@ use gtk::{
gformat, GString, Priority, Regex, RegexCompileFlags, RegexMatchFlags, Uri, UriFlags, gformat, GString, Priority, Regex, RegexCompileFlags, RegexMatchFlags, Uri, UriFlags,
UriHideFlags, UriHideFlags,
}, },
prelude::{EditableExt, FileExt, SocketClientExt}, prelude::{EditableExt, FileExt, SocketClientExt, WidgetExt},
}; };
use sqlite::Transaction; use sqlite::Transaction;
use std::{rc::Rc, time::Duration}; use std::{rc::Rc, time::Duration};
@ -157,6 +157,9 @@ impl Page {
/// * every protocol implementation has own value checker, according to specification /// * every protocol implementation has own value checker, according to specification
const DEFAULT_MAX_REDIRECT_COUNT: usize = 10; const DEFAULT_MAX_REDIRECT_COUNT: usize = 10;
// Move focus out from navigation entry
self.navigation.reload.widget.gobject.grab_focus();
// Reset widgets // Reset widgets
self.input.unset(); self.input.unset();