Commit f3e3157
feat: add
* Add `onKeyDown` prop to ListBoxItem for custom keyboard handling
* Update type annotation in ListBox example and fix style formatting in ListBox story
* fix: remove custom keyboard handling example from ListBox docs and story
* test: add unit tests for `onKeyDown` prop in ListBox component
* test: remove redundant assertions for `onKeyDown` in ListBox tests
* test: update `onKeyDown` tests in ListBox to use user-event for better simulation
* Add `onKeyDown` prop to ListBoxItem for custom keyboard handling
* Update type annotation in ListBox example and fix style formatting in ListBox story
* fix: remove custom keyboard handling example from ListBox docs and story
* test: add unit tests for `onKeyDown` prop in ListBox component
* test: remove redundant assertions for `onKeyDown` in ListBox tests
* test: update `onKeyDown` tests in ListBox to use user-event for better simulation
* chore: remove unnecessary blank lines in ListBox story
* chore: remove trailing blank line in ListBox story
* Add tests and move to useKeyboard
---------
Co-authored-by: Robert Snow <snowystinger@gmail.com>onKeyDown prop to ListBoxItem for custom keyboard handling (adobe#9181)1 parent acc3263 commit f3e3157
2 files changed
Lines changed: 28 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| 386 | + | |
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
| |||
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
434 | | - | |
| 435 | + | |
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1406 | 1406 | | |
1407 | 1407 | | |
1408 | 1408 | | |
1409 | | - | |
| 1409 | + | |
1410 | 1410 | | |
1411 | 1411 | | |
1412 | 1412 | | |
| |||
1949 | 1949 | | |
1950 | 1950 | | |
1951 | 1951 | | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
1952 | 1974 | | |
1953 | 1975 | | |
1954 | 1976 | | |
| |||
0 commit comments