mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-21 12:59:41 +00:00
fix confirmation prompt closing via rmb
This commit is contained in:
parent
a8343155e5
commit
eeb501401a
|
@ -91,6 +91,10 @@ impl FloatContent for ConfirmPrompt {
|
|||
self.status = ConfirmStatus::Confirm;
|
||||
true
|
||||
}
|
||||
MouseEventKind::Down(MouseButton::Right) => {
|
||||
self.status = ConfirmStatus::Abort;
|
||||
false
|
||||
}
|
||||
MouseEventKind::ScrollDown => {
|
||||
self.scroll_down();
|
||||
false
|
||||
|
|
|
@ -56,7 +56,10 @@ impl<Content: FloatContent + ?Sized> Float<Content> {
|
|||
|
||||
pub fn handle_mouse_event(&mut self, event: &MouseEvent) -> bool {
|
||||
match event.kind {
|
||||
MouseEventKind::Down(MouseButton::Right) => true,
|
||||
MouseEventKind::Down(MouseButton::Right) => {
|
||||
self.content.handle_mouse_event(event);
|
||||
true
|
||||
}
|
||||
_ => self.content.handle_mouse_event(event),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -519,6 +519,7 @@ impl AppState {
|
|||
ConfirmStatus::None => {}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user