mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-10 10:24:13 +00:00
move focus out from content on link activate
This commit is contained in:
parent
3f63add389
commit
696fafe3f9
@ -10,7 +10,11 @@ use history::History;
|
||||
use reload::Reload;
|
||||
use request::Request;
|
||||
|
||||
use gtk::{glib::GString, prelude::BoxExt, Box, Orientation};
|
||||
use gtk::{
|
||||
glib::GString,
|
||||
prelude::{BoxExt, WidgetExt},
|
||||
Box, DirectionType, Orientation,
|
||||
};
|
||||
|
||||
pub struct Navigation {
|
||||
// GTK
|
||||
@ -70,6 +74,11 @@ impl Navigation {
|
||||
|
||||
// Setters
|
||||
pub fn set_request_text(&self, value: &GString, activate: bool) {
|
||||
if activate {
|
||||
// Focus out from content area on activate the link @TODO
|
||||
self.widget.child_focus(DirectionType::Right);
|
||||
}
|
||||
|
||||
self.request.set_text(value, activate);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user