This repository was archived by the owner on Mar 25, 2025. It is now read-only.
Commit aeb9a5b
feat(multiSelect): remove selected options with keyboard
Add `Enter` key down event listeners on the remove icons. So that the
control can be controlled with keyboard and not require a mouse.1 parent 8cc235d commit aeb9a5b
File tree
3 files changed
+47
-6
lines changed- packages/core/src
- Chip
- Select
- __snapshots__
3 files changed
+47
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
51 | 65 | | |
52 | 66 | | |
53 | 67 | | |
54 | 68 | | |
55 | 69 | | |
56 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
57 | 73 | | |
58 | 74 | | |
59 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
87 | 96 | | |
88 | 97 | | |
89 | 98 | | |
| |||
95 | 104 | | |
96 | 105 | | |
97 | 106 | | |
98 | | - | |
99 | | - | |
| 107 | + | |
100 | 108 | | |
101 | 109 | | |
102 | 110 | | |
| |||
124 | 132 | | |
125 | 133 | | |
126 | 134 | | |
| 135 | + | |
127 | 136 | | |
128 | 137 | | |
129 | 138 | | |
130 | 139 | | |
131 | 140 | | |
132 | | - | |
| 141 | + | |
133 | 142 | | |
134 | 143 | | |
135 | 144 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| |||
331 | 332 | | |
332 | 333 | | |
333 | 334 | | |
| 335 | + | |
334 | 336 | | |
335 | 337 | | |
336 | 338 | | |
| |||
697 | 699 | | |
698 | 700 | | |
699 | 701 | | |
| 702 | + | |
700 | 703 | | |
701 | 704 | | |
702 | 705 | | |
| |||
724 | 727 | | |
725 | 728 | | |
726 | 729 | | |
| 730 | + | |
727 | 731 | | |
728 | 732 | | |
729 | 733 | | |
| |||
1097 | 1101 | | |
1098 | 1102 | | |
1099 | 1103 | | |
| 1104 | + | |
1100 | 1105 | | |
1101 | 1106 | | |
1102 | 1107 | | |
| |||
1124 | 1129 | | |
1125 | 1130 | | |
1126 | 1131 | | |
| 1132 | + | |
1127 | 1133 | | |
1128 | 1134 | | |
1129 | 1135 | | |
| |||
1504 | 1510 | | |
1505 | 1511 | | |
1506 | 1512 | | |
| 1513 | + | |
1507 | 1514 | | |
1508 | 1515 | | |
1509 | 1516 | | |
| |||
1531 | 1538 | | |
1532 | 1539 | | |
1533 | 1540 | | |
| 1541 | + | |
1534 | 1542 | | |
1535 | 1543 | | |
1536 | 1544 | | |
| |||
1897 | 1905 | | |
1898 | 1906 | | |
1899 | 1907 | | |
| 1908 | + | |
1900 | 1909 | | |
1901 | 1910 | | |
1902 | 1911 | | |
| |||
1924 | 1933 | | |
1925 | 1934 | | |
1926 | 1935 | | |
| 1936 | + | |
1927 | 1937 | | |
1928 | 1938 | | |
1929 | 1939 | | |
| |||
2290 | 2300 | | |
2291 | 2301 | | |
2292 | 2302 | | |
| 2303 | + | |
2293 | 2304 | | |
2294 | 2305 | | |
2295 | 2306 | | |
| |||
2322 | 2333 | | |
2323 | 2334 | | |
2324 | 2335 | | |
| 2336 | + | |
2325 | 2337 | | |
2326 | 2338 | | |
2327 | 2339 | | |
| |||
2349 | 2361 | | |
2350 | 2362 | | |
2351 | 2363 | | |
| 2364 | + | |
2352 | 2365 | | |
2353 | 2366 | | |
2354 | 2367 | | |
| |||
2715 | 2728 | | |
2716 | 2729 | | |
2717 | 2730 | | |
| 2731 | + | |
2718 | 2732 | | |
2719 | 2733 | | |
2720 | 2734 | | |
| |||
2747 | 2761 | | |
2748 | 2762 | | |
2749 | 2763 | | |
| 2764 | + | |
2750 | 2765 | | |
2751 | 2766 | | |
2752 | 2767 | | |
| |||
2774 | 2789 | | |
2775 | 2790 | | |
2776 | 2791 | | |
| 2792 | + | |
2777 | 2793 | | |
2778 | 2794 | | |
2779 | 2795 | | |
| |||
0 commit comments