mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
cmdsys: reenable phrase edit mode
This commit is contained in:
parent
1085826849
commit
adb666c527
1 changed files with 22 additions and 10 deletions
|
|
@ -225,19 +225,31 @@ impl<E: Engine> Command<PhraseEditor<E>> for PhraseEditorCommand {
|
||||||
use PhraseEditorCommand::*;
|
use PhraseEditorCommand::*;
|
||||||
match self.translate(state) {
|
match self.translate(state) {
|
||||||
ToggleDirection => { state.mode = !state.mode; },
|
ToggleDirection => { state.mode = !state.mode; },
|
||||||
EnterEditMode => { state.entered = true; },
|
EnterEditMode => { state.entered = true; },
|
||||||
ExitEditMode => { state.entered = false; },
|
ExitEditMode => { state.entered = false; },
|
||||||
TimeZoomOut => { state.time_zoom_out() },
|
TimeZoomOut => { state.time_zoom_out() },
|
||||||
TimeZoomIn => { state.time_zoom_in() },
|
TimeZoomIn => { state.time_zoom_in() },
|
||||||
|
TimeCursorDec => { state.time_cursor_dec() },
|
||||||
|
TimeCursorInc => { state.time_cursor_inc() },
|
||||||
|
TimeScrollDec => { state.time_scroll_dec() },
|
||||||
|
TimeScrollInc => { state.time_scroll_inc() },
|
||||||
|
NoteCursorDec => { state.note_cursor_dec() },
|
||||||
|
NoteCursorInc => { state.note_cursor_inc() },
|
||||||
|
NoteScrollDec => { state.note_scroll_dec() },
|
||||||
|
NoteScrollInc => { state.note_scroll_inc() },
|
||||||
NoteLengthDec => { state.note_length_dec() },
|
NoteLengthDec => { state.note_length_dec() },
|
||||||
NoteLengthInc => { state.note_length_inc() },
|
NoteLengthInc => { state.note_length_inc() },
|
||||||
NotePageUp => { state.note_page_up() },
|
NotePageUp => { state.note_page_up() },
|
||||||
NotePageDown => { state.note_page_down() },
|
NotePageDown => { state.note_page_down() },
|
||||||
NoteAppend => if state.entered {
|
NoteAppend => {
|
||||||
state.put();
|
if state.entered {
|
||||||
state.time_cursor_advance();
|
state.put();
|
||||||
|
state.time_cursor_advance();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
NoteSet => {
|
||||||
|
if state.entered { state.put(); }
|
||||||
},
|
},
|
||||||
NoteSet => if state.entered { state.put(); },
|
|
||||||
_ => unreachable!()
|
_ => unreachable!()
|
||||||
}
|
}
|
||||||
Ok(None)
|
Ok(None)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue