(state: State)
| 160 | } |
| 161 | |
| 162 | function processCursorLeft(state: State) { |
| 163 | const previousPart = state.dateParts[state.cursor].previousPart() |
| 164 | return Option.match(previousPart, { |
| 165 | onNone: () => Action.Beep(), |
| 166 | onSome: (previous) => |
| 167 | Action.NextFrame({ |
| 168 | state: { |
| 169 | ...state, |
| 170 | typed: "", |
| 171 | cursor: state.dateParts.indexOf(previous) |
| 172 | } |
| 173 | }) |
| 174 | }) |
| 175 | } |
| 176 | |
| 177 | function processCursorRight(state: State) { |
| 178 | const nextPart = state.dateParts[state.cursor].nextPart() |
no outgoing calls
no test coverage detected
searching dependent graphs…