Compare commits

..

12 Commits

Author SHA1 Message Date
nnyyxxxx
7a98581421
run clippy 2024-11-13 03:46:11 -05:00
nnyyxxxx
80cd6e516b
change to false 2024-11-13 03:46:00 -05:00
nnyyxxxx
10b1f20562
w.i.p. left click confirmation 2024-11-13 03:43:43 -05:00
nnyyxxxx
1190892617
combine crates 2024-11-13 03:38:28 -05:00
nnyyxxxx
ba7821b979
make right click close floating windows 2024-11-13 03:30:56 -05:00
nnyyxxxx
2cd10bf4ce
add click and drag 2024-11-13 00:11:01 -05:00
nnyyxxxx
6292c5cd4e
bring up description on scroll wheel pressdown, bring up script preview on Right Mouse Button pressdown 2024-11-13 00:05:15 -05:00
nnyyxxxx
9bd893849f
allow selection of search bar 2024-11-12 23:51:39 -05:00
nnyyxxxx
78660f5471
fix subdir bug 2024-11-12 23:46:44 -05:00
nnyyxxxx
d33944197f
improve mouse position calculation 2024-11-12 23:41:20 -05:00
nnyyxxxx
c789c46816
run fmt 2024-11-12 23:38:12 -05:00
nnyyxxxx
cf2c96a4ad
w.i.p. concept for more mouse interaction within the tui 2024-11-12 23:36:46 -05:00
3 changed files with 1 additions and 9 deletions

View File

@ -91,10 +91,6 @@ 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,10 +56,7 @@ impl<Content: FloatContent + ?Sized> Float<Content> {
pub fn handle_mouse_event(&mut self, event: &MouseEvent) -> bool {
match event.kind {
MouseEventKind::Down(MouseButton::Right) => {
self.content.handle_mouse_event(event);
true
}
MouseEventKind::Down(MouseButton::Right) => true,
_ => self.content.handle_mouse_event(event),
}
}

View File

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