mirror of
https://github.com/hannobraun/Fornjot
synced 2025-08-14 05:06:05 +00:00
Add OpsLog::select_previous
This commit is contained in:
parent
29527442dc
commit
225e66a92e
@ -98,7 +98,7 @@ impl ApplicationHandler for App {
|
|||||||
self.ops.select_next();
|
self.ops.select_next();
|
||||||
}
|
}
|
||||||
Key::Named(NamedKey::ArrowUp) => {
|
Key::Named(NamedKey::ArrowUp) => {
|
||||||
self.ops.selected = self.ops.selected.saturating_sub(1);
|
self.ops.select_previous();
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
@ -60,6 +60,10 @@ impl OpsLog {
|
|||||||
self.selected += 1;
|
self.selected += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn select_previous(&mut self) {
|
||||||
|
self.selected = self.selected.saturating_sub(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Display for OpsLog {
|
impl fmt::Display for OpsLog {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user