Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
[date-time-picker] Updated KeyboardShortcuts doc for datetime picker (#…
Browse files Browse the repository at this point in the history
…2124)

Co-authored-by: Avijit Das <[email protected]>
  • Loading branch information
adavijit and Avijit Das authored Apr 5, 2024
1 parent 4ae47a2 commit de3cf99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions packages/terra-framework-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Changed
* Updated `date-time-picker` KeyboardShortcuts doc for +/- Keys for DateTime input.

## 1.79.0 - (April 4, 2024)

* Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ Pressing any of the supported keys while the input is in focus will populate the
| Key / Sequence | Input | Description |
|----------------|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| T | Date | Sets the date value to the current date (Today). |
| - | Date | Decrements the day value by 1 day. If blank or not a valid date, input will set value to current date minus 1 day. |
| + | Date | Increments the day value by 1 day. If blank or not a valid time, input will set value to current date plus 1 day. |
| - | DateTime | Decrements the focused value by 1 Unit. The unit can be month, day, year, hour or minute. If blank or not a valid date or time, input will set value to current focused unit minus 1 unit. |
| + | DateTime | Increments the focused value by 1 Unit. The unit can be month, day, year, hour or minute. If blank or not a valid date or time, input will set value to current focused unit plus 1 unit. |
| N | Time | Sets the time value to the current time (Now). Also sets date to the current date if there is no date or invalid date |
| - | Time | Decrements the minute value by 1 minute. If blank or not a valid time or date, input will set date to current date and value to current time minus 1 minute. |
| + | Time | Increments the minute value by 1 minute. If blank or not a valid time or date, input will set date to current date and value to current time plus 1 minute. |
| A | Time | In a 12 hour clock, sets meridiem to antemeridiem. If blank or not a valid time or date, input will set date to current date and value to midnight. If not a 12 hour clock, will do nothing. |
| P | Time | In a 12 hour clock, sets meridiem to postmeridiem. If blank or not a valid time or date, input will set date to current date and value to noon. If not a 12 hour clock, will do nothing. |

Expand Down

0 comments on commit de3cf99

Please sign in to comment.