Skip to content

Commit

Permalink
docs: update keyboard handling docs (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid authored May 23, 2019
1 parent 5156177 commit f87e8a8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
9 changes: 9 additions & 0 deletions packages/main/src/DatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,15 @@ const metadata = {
* For example, if the <code>format-pattern</code> is "yyyy-MM-dd",
* a valid value string is "2015-07-30" and the same is displayed in the input.
*
* <h3>Keyboard Handling</h3>
* The <code>ui5-datepicker</code> provides advanced keyboard handling.
* If the <code>ui5-datepicker</code> is focused,
* you can open or close the drop-down by pressing <code>F4</code>, <code>ALT+UP</code> or <code>ALT+DOWN</code> keys.
* Once the drop-down is opened, you can use the <code>UP</code>, <code>DOWN</code>, <code>LEFT</code>, <code>right</code> arrow keys
* to navigate through the dates and select one by pressing the <code>Space</code> or <code>Enter</code> keys. Moreover you can
* use tab to reach the buttons for changing month and year.
* <br>
*
* <h3>ES6 Module Import</h3>
*
* <code>import "@ui5/webcomponents/dist/DatePicker";</code>
Expand Down
16 changes: 13 additions & 3 deletions packages/main/src/MultiComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,16 @@ const metadata = {
* <li> Drop-down arrow - expands\collapses the option list.</li>
* <li> Option list - the list of available options.</li>
* </ul>
* <h3>Keyboard handling</h3>
* <h3>Keyboard Handling</h3>
*
* The <code>ui5-multi-combobox</code> provides advanced keyboard handling.
*
* <h4>Picker</h3>
* If the <code>ui5-multi-combobox</code> is focused,
* you can open or close the drop-down by pressing <code>F4</code>, <code>ALT+UP</code> or <code>ALT+DOWN</code> keys.
* Once the drop-down is opened, you can use the <code>UP</code> and <code>DOWN</code> arrow keys
* to navigate through the available options and select one by pressing the <code>Space</code> or <code>Enter</code> keys.
* <br>
*
* <h4>Tokens</h2>
* <ul>
Expand All @@ -201,8 +210,9 @@ const metadata = {
* <li> Backspace - deletes the token and focus the next token. </li>
* </ul>
*
* <h4>Picker</h3>
* Alt + arrow down or F4 - opens the picker.
* <h3>ES6 Module Import</h3>
*
* <code>import "@ui5/webcomponents/dist/MultiComboBox";</code>
*
*
* @constructor
Expand Down

1 comment on commit f87e8a8

@fifoosid
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part of #428

Please sign in to comment.