mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 12:46:42 +01:00
wip: sequencer edit mode
This commit is contained in:
parent
eac8986548
commit
0af5f97244
5 changed files with 72 additions and 147 deletions
|
|
@ -9,6 +9,11 @@ pub trait FocusGrid<T: Copy + PartialEq> {
|
|||
let (x, y) = self.cursor();
|
||||
&self.layout()[y][x]
|
||||
}
|
||||
fn focus (&mut self, target: T) {
|
||||
while self.focused() != &target {
|
||||
self.focus_next()
|
||||
}
|
||||
}
|
||||
fn focus_up (&mut self) {
|
||||
let layout = self.layout();
|
||||
let (x, y) = self.cursor();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue