mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
hide suggestion popover on focus out from navigation entry or app window left
This commit is contained in:
parent
9fcfac3ce9
commit
1ebf70a178
@ -131,6 +131,15 @@ impl Request {
|
||||
}
|
||||
});
|
||||
|
||||
entry.connect_has_focus_notify({
|
||||
let suggestion = suggestion.clone();
|
||||
move |_| {
|
||||
if suggestion.is_visible() {
|
||||
suggestion.hide()
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
entry.connect_state_flags_changed({
|
||||
// Define last focus state container
|
||||
let has_focus = Cell::new(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user