mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
move focus from navigation entry on page load request
This commit is contained in:
parent
b8d9d06bf2
commit
a710e5e893
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user