mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
hide suggestion popover on focus out from navigation entry or app window left
This commit is contained in:
parent
9fcfac3ce9
commit
1ebf70a178
1 changed files with 9 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue