Keyboard Interface
Field
| Key | Action |
|---|
| Digits, letters | Type the part being edited (see Editing). |
| Up, Down, + and - on the numeric keypad | Change the part being edited. |
| Left, Right | Move to the previous or next part. |
| Tab, Shift+Tab | Move to the next or previous part, and to the next or previous control after the last or before the first part. |
| Home, End | Move to the first or last part. |
| Delete, Backspace | Empty the part being edited. |
| Space | Check or clear the check box (SftDate.ShowCheckBox property). |
| Ctrl+C, Ctrl+Insert | the formatted value. |
| Ctrl+V, Shift+Insert | Paste a text and parse it. |
| F4, Alt+Down, Alt+Up | Open or close the dropdown. |
In a field with free-form editing (EditStyleEnum.FreeForm), the keys edit the text as in a text box; Enter accepts the text, and Up and Down change the value by one day, or by one minute in a field showing only a time. While the dropdown is open, the keys go to the dropdown until a text is typed; after that, Space, Left, Right, Home and End edit the text, and Enter or Tab closes the dropdown and accepts the typed text.
Dropdown
The field keeps the input focus while the dropdown is open.
| Key | Action |
|---|
| Enter | Accept the date or time and close the dropdown. |
| Escape | Close the dropdown without changing the value. |
| F4, Alt+Up, Alt+Down | Close the dropdown. F4 keeps the value, Alt+Up and Alt+Down accept the date or time. |
| Tab | Switch between the calendar and the time selection. When the dropdown shows only one of them, accept the value, close the dropdown and move on as Tab does in the field. |
| Arrow keys, Page Up, Page Down, Home, End | Move in the calendar or the time selection (see below and Time List and Clock). |
Calendar
| Key | Action |
|---|
| Left, Right | Move to the previous or next day (month, year or decade in the larger views). |
| Up, Down | Move to the same day of the previous or next week (one row up or down in the larger views). |
| Page Up, Page Down | Move to the same day of the previous or next month (year, decade or century in the larger views). |
| Ctrl+Page Up, Ctrl+Page Down | Move to the same day of the previous or next year. |
| Home, End | Move to the first or last day of the month. |
| Shift with the keys above | Extend the range in range mode. |
| Ctrl+Up | Switch to the next larger view (year, decade, century). |
| Ctrl+Down, Enter, Space | Switch to the next smaller view; in the smallest view, Enter and Space choose the date (SftCalendar.DateActivated event). |