mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
bring up description on scroll wheel pressdown, bring up script preview on Right Mouse Button pressdown
This commit is contained in:
parent
9bd893849f
commit
6292c5cd4e
|
@ -548,21 +548,36 @@ impl AppState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MouseEventKind::Down(MouseButton::Left) => {
|
MouseEventKind::Down(button) => match button {
|
||||||
if mouse_in_search {
|
MouseButton::Left => {
|
||||||
self.enter_search();
|
if mouse_in_search {
|
||||||
} else if mouse_in_list {
|
self.enter_search();
|
||||||
if matches!(self.focus, Focus::Search) {
|
} else if mouse_in_list {
|
||||||
self.exit_search();
|
if matches!(self.focus, Focus::Search) {
|
||||||
|
self.exit_search();
|
||||||
|
}
|
||||||
|
self.handle_enter();
|
||||||
|
} else if mouse_in_tab_list {
|
||||||
|
if matches!(self.focus, Focus::Search) {
|
||||||
|
self.exit_search();
|
||||||
|
}
|
||||||
|
self.focus = Focus::List;
|
||||||
}
|
}
|
||||||
self.handle_enter();
|
|
||||||
} else if mouse_in_tab_list {
|
|
||||||
if matches!(self.focus, Focus::Search) {
|
|
||||||
self.exit_search();
|
|
||||||
}
|
|
||||||
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