hide suggestion popover on focus out from navigation entry or app window left

This commit is contained in:
yggverse 2025-03-11 17:10:40 +02:00
parent 9fcfac3ce9
commit 1ebf70a178

View File

@ -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);