(state: DateState)
| 1812 | } |
| 1813 | |
| 1814 | const processDateCursorRight = (state: DateState) => { |
| 1815 | const next = state.dateParts[state.cursor].nextPart() |
| 1816 | if (Option.isSome(next)) { |
| 1817 | return Action.NextFrame({ |
| 1818 | state: { |
| 1819 | ...state, |
| 1820 | typed: "", |
| 1821 | cursor: state.dateParts.indexOf(next.value) |
| 1822 | } |
| 1823 | }) |
| 1824 | } |
| 1825 | return Action.Beep() |
| 1826 | } |
| 1827 | |
| 1828 | const processDateNext = (state: DateState) => { |
| 1829 | const next = state.dateParts[state.cursor].nextPart() |