mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-23 21:51:56 +00:00
Compare commits
11 Commits
7a98581421
...
e583fc7864
Author | SHA1 | Date | |
---|---|---|---|
|
e583fc7864 | ||
|
563676db7c | ||
|
ee4f28fed2 | ||
|
685f71e53c | ||
|
778372bb4a | ||
|
55e547f9d0 | ||
|
f41257d55b | ||
|
093ae2cfb3 | ||
|
f6b8358fcc | ||
|
d7da907a9c | ||
|
87f065e8e6 |
|
@ -91,6 +91,10 @@ impl FloatContent for ConfirmPrompt {
|
||||||
self.status = ConfirmStatus::Confirm;
|
self.status = ConfirmStatus::Confirm;
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
MouseEventKind::Down(MouseButton::Right) => {
|
||||||
|
self.status = ConfirmStatus::Abort;
|
||||||
|
false
|
||||||
|
}
|
||||||
MouseEventKind::ScrollDown => {
|
MouseEventKind::ScrollDown => {
|
||||||
self.scroll_down();
|
self.scroll_down();
|
||||||
false
|
false
|
||||||
|
|
|
@ -56,7 +56,10 @@ impl<Content: FloatContent + ?Sized> Float<Content> {
|
||||||
|
|
||||||
pub fn handle_mouse_event(&mut self, event: &MouseEvent) -> bool {
|
pub fn handle_mouse_event(&mut self, event: &MouseEvent) -> bool {
|
||||||
match event.kind {
|
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),
|
_ => self.content.handle_mouse_event(event),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -519,6 +519,7 @@ impl AppState {
|
||||||
ConfirmStatus::None => {}
|
ConfirmStatus::None => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user