mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
move focus from navigation entry on page load request
This commit is contained in:
parent
b8d9d06bf2
commit
a710e5e893
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue