mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +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::*;
|
||||
match self.translate(state) {
|
||||
ToggleDirection => { state.mode = !state.mode; },
|
||||
EnterEditMode => { state.entered = true; },
|
||||
ExitEditMode => { state.entered = false; },
|
||||
TimeZoomOut => { state.time_zoom_out() },
|
||||
TimeZoomIn => { state.time_zoom_in() },
|
||||
EnterEditMode => { state.entered = true; },
|
||||
ExitEditMode => { state.entered = false; },
|
||||
TimeZoomOut => { state.time_zoom_out() },
|
||||
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() },
|
||||
NoteLengthInc => { state.note_length_inc() },
|
||||
NotePageUp => { state.note_page_up() },
|
||||
NotePageDown => { state.note_page_down() },
|
||||
NoteAppend => if state.entered {
|
||||
state.put();
|
||||
state.time_cursor_advance();
|
||||
NotePageUp => { state.note_page_up() },
|
||||
NotePageDown => { state.note_page_down() },
|
||||
NoteAppend => {
|
||||
if state.entered {
|
||||
state.put();
|
||||
state.time_cursor_advance();
|
||||
}
|
||||
},
|
||||
NoteSet => {
|
||||
if state.entered { state.put(); }
|
||||
},
|
||||
NoteSet => if state.entered { state.put(); },
|
||||
_ => unreachable!()
|
||||
}
|
||||
Ok(None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue