mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-23 21:51:56 +00:00
bring up description on scroll wheel pressdown, bring up script preview on Right Mouse Button pressdown
This commit is contained in:
parent
6e84cb301b
commit
684346272d
|
@ -548,7 +548,8 @@ impl AppState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MouseEventKind::Down(MouseButton::Left) => {
|
MouseEventKind::Down(button) => match button {
|
||||||
|
MouseButton::Left => {
|
||||||
if mouse_in_search {
|
if mouse_in_search {
|
||||||
self.enter_search();
|
self.enter_search();
|
||||||
} else if mouse_in_list {
|
} else if mouse_in_list {
|
||||||
|
@ -563,6 +564,20 @@ impl AppState {
|
||||||
self.focus = Focus::List;
|
self.focus = Focus::List;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
MouseButton::Right if mouse_in_list => {
|
||||||
|
if matches!(self.focus, Focus::Search) {
|
||||||
|
self.exit_search();
|
||||||
|
}
|
||||||
|
self.enable_preview();
|
||||||
|
}
|
||||||
|
MouseButton::Middle if mouse_in_list => {
|
||||||
|
if matches!(self.focus, Focus::Search) {
|
||||||
|
self.exit_search();
|
||||||
|
}
|
||||||
|
self.enable_description();
|
||||||
|
}
|
||||||
|
_ => {}
|
||||||
|
},
|
||||||
MouseEventKind::ScrollDown | MouseEventKind::ScrollUp => {
|
MouseEventKind::ScrollDown | MouseEventKind::ScrollUp => {
|
||||||
if matches!(self.focus, Focus::Search) {
|
if matches!(self.focus, Focus::Search) {
|
||||||
self.exit_search();
|
self.exit_search();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user