(state: DateState)
| 1636 | } |
| 1637 | |
| 1638 | const processDateCursorLeft = (state: DateState) => { |
| 1639 | const previous = state.dateParts[state.cursor].previousPart() |
| 1640 | if (Option.isSome(previous)) { |
| 1641 | return Action.NextFrame({ |
| 1642 | state: { |
| 1643 | ...state, |
| 1644 | typed: "", |
| 1645 | cursor: state.dateParts.indexOf(previous.value) |
| 1646 | } |
| 1647 | }) |
| 1648 | } |
| 1649 | return Action.Beep() |
| 1650 | } |
| 1651 | |
| 1652 | const processDateCursorRight = (state: DateState) => { |
| 1653 | const next = state.dateParts[state.cursor].nextPart() |