(state: DateState)
| 1650 | } |
| 1651 | |
| 1652 | const processDateCursorRight = (state: DateState) => { |
| 1653 | const next = state.dateParts[state.cursor].nextPart() |
| 1654 | if (Option.isSome(next)) { |
| 1655 | return Action.NextFrame({ |
| 1656 | state: { |
| 1657 | ...state, |
| 1658 | typed: "", |
| 1659 | cursor: state.dateParts.indexOf(next.value) |
| 1660 | } |
| 1661 | }) |
| 1662 | } |
| 1663 | return Action.Beep() |
| 1664 | } |
| 1665 | |
| 1666 | const processDateNext = (state: DateState) => { |
| 1667 | const next = state.dateParts[state.cursor].nextPart() |