Skip to content

Commit

Permalink
Close popups when receiving mouse events outside the frame
Browse files Browse the repository at this point in the history
  • Loading branch information
sudormrfbin committed Apr 3, 2024
1 parent 9cc0f82 commit d05cc25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/ui/popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl<T: Component> Popup<T> {
&& y < self.area.bottom();

if !mouse_is_within_popup {
return EventResult::Ignored(None);
return EventResult::Ignored(Some(self.close_cb()));
}

match kind {
Expand Down

0 comments on commit d05cc25

Please sign in to comment.