(state: DateState)
| 1798 | } |
| 1799 | |
| 1800 | const processDateCursorLeft = (state: DateState) => { |
| 1801 | const previous = state.dateParts[state.cursor].previousPart() |
| 1802 | if (Option.isSome(previous)) { |
| 1803 | return Action.NextFrame({ |
| 1804 | state: { |
| 1805 | ...state, |
| 1806 | typed: "", |
| 1807 | cursor: state.dateParts.indexOf(previous.value) |
| 1808 | } |
| 1809 | }) |
| 1810 | } |
| 1811 | return Action.Beep() |
| 1812 | } |
| 1813 | |
| 1814 | const processDateCursorRight = (state: DateState) => { |
| 1815 | const next = state.dateParts[state.cursor].nextPart() |