Compare commits

..

11 Commits

Author SHA1 Message Date
nnyyxxxx
e583fc7864
fix confirmation prompt closing via rmb 2024-11-13 09:16:03 -05:00
nnyyxxxx
563676db7c
change to false
run clippy
2024-11-13 09:16:03 -05:00
nnyyxxxx
ee4f28fed2
w.i.p. left click confirmation 2024-11-13 09:16:02 -05:00
nnyyxxxx
685f71e53c
combine crates 2024-11-13 09:16:02 -05:00
nnyyxxxx
778372bb4a
make right click close floating windows 2024-11-13 09:16:02 -05:00
nnyyxxxx
55e547f9d0
add click and drag 2024-11-13 09:16:01 -05:00
nnyyxxxx
f41257d55b
bring up description on scroll wheel pressdown, bring up script preview on Right Mouse Button pressdown 2024-11-13 09:16:01 -05:00
nnyyxxxx
093ae2cfb3
allow selection of search bar 2024-11-13 09:16:01 -05:00
nnyyxxxx
f6b8358fcc
fix subdir bug 2024-11-13 09:16:01 -05:00
nnyyxxxx
d7da907a9c
improve mouse position calculation 2024-11-13 09:16:00 -05:00
nnyyxxxx
87f065e8e6
w.i.p. concept for more mouse interaction within the tui
run fmt
2024-11-13 09:15:58 -05:00
3 changed files with 9 additions and 1 deletions

View File

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

View File

@ -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),
}
}

View File

@ -519,6 +519,7 @@ impl AppState {
ConfirmStatus::None => {}
}
}
return true;
}
_ => {}
}