mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
fix time left/right in editor
This commit is contained in:
parent
130a53220a
commit
f7ae5fc8e0
1 changed files with 7 additions and 4 deletions
|
|
@ -51,10 +51,13 @@ impl InputToCommand<Tui, PhraseEditorModel> for PhraseCommand {
|
||||||
state.note_point.load(Ordering::Relaxed).saturating_sub(3)
|
state.note_point.load(Ordering::Relaxed).saturating_sub(3)
|
||||||
),
|
),
|
||||||
key!(Left) => SetTimeCursor(
|
key!(Left) => SetTimeCursor(
|
||||||
state.note_point.load(Ordering::Relaxed).saturating_sub(1)
|
state.time_point.load(Ordering::Relaxed).saturating_sub(
|
||||||
|
state.time_scale.load(Ordering::Relaxed)
|
||||||
|
)
|
||||||
),
|
),
|
||||||
key!(Right) => SetTimeCursor(
|
key!(Right) => SetTimeCursor(
|
||||||
state.note_point.load(Ordering::Relaxed) + 1
|
state.time_point.load(Ordering::Relaxed) +
|
||||||
|
state.time_scale.load(Ordering::Relaxed)
|
||||||
),
|
),
|
||||||
_ => return None
|
_ => return None
|
||||||
},
|
},
|
||||||
|
|
@ -73,10 +76,10 @@ impl InputToCommand<Tui, PhraseEditorModel> for PhraseCommand {
|
||||||
state.note_lo.load(Ordering::Relaxed).saturating_sub(3)
|
state.note_lo.load(Ordering::Relaxed).saturating_sub(3)
|
||||||
),
|
),
|
||||||
key!(Left) => SetTimeScroll(
|
key!(Left) => SetTimeScroll(
|
||||||
state.note_lo.load(Ordering::Relaxed).saturating_sub(1)
|
state.time_start.load(Ordering::Relaxed).saturating_sub(1)
|
||||||
),
|
),
|
||||||
key!(Right) => SetTimeScroll(
|
key!(Right) => SetTimeScroll(
|
||||||
state.note_lo.load(Ordering::Relaxed) + 1
|
state.time_start.load(Ordering::Relaxed) + 1
|
||||||
),
|
),
|
||||||
key!(Char('a')) => AppendNote,
|
key!(Char('a')) => AppendNote,
|
||||||
key!(Char('s')) => PutNote,
|
key!(Char('s')) => PutNote,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue