Skip to content

Commit dc8e5ea

Browse files
committed
add keyboard handling docs
1 parent 9ba0dc4 commit dc8e5ea

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

packages/fiori/src/ProductSwitch.js

+14
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,20 @@ const metadata = {
5757
* The <code>ui5-product-switch</code> is an SAP Fiori specific web component that is used in <code>ui5-shellbar</code>
5858
* and allows the user to easily switch between products.
5959
* <br><br>
60+
*
61+
* <h3>Keyboard Handling</h3>
62+
* The <code>ui5-product-switch</code> provides advanced keyboard handling.
63+
* When focused, the user can use the following keyboard
64+
* shortcuts in order to perform a navigation:
65+
* <br>
66+
* <ul>
67+
* <li>[TAB] - Move focus to the next interactive element after the <code>ui5-product-switch</code></li>
68+
* <li>[UP/DOWN] - Navigates up and down the items </li>
69+
* <li>[LEFT/RIGHT] - Navigates left and right the items</li>
70+
* </ul>
71+
* <br>
72+
* <br>
73+
*
6074
* <h3>ES6 Module Import</h3>
6175
* <code>import "@ui5/webcomponents-fiori/dist/ProductSwitch.js";</code>
6276
* <br>

packages/fiori/src/ProductSwitchItem.js

+11
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,17 @@ const metadata = {
126126
* <br><br>
127127
* <b>Note:</b> <code>ui5-product-switch-item</code> is not supported when used outside of <code>ui5-product-switch</code>.
128128
* <br><br>
129+
*
130+
* <h3>Keyboard Handling</h3>
131+
* The <code>ui5-product-switch</code> provides advanced keyboard handling.
132+
* When focused, the user can use the following keyboard
133+
* shortcuts in order to perform a navigation:
134+
* <br>
135+
* <ul>
136+
* <li>[SPACE/ENTER/RETURN] - Trigger <code>ui5-click</code> event</li>
137+
* </ul>
138+
* <br><br>
139+
*
129140
* <h3>ES6 Module Import</h3>
130141
* <code>import "@ui5/webcomponents-fiori/dist/ProductSwitchItem.js";</code>
131142
*

0 commit comments

Comments
 (0)