Commit de2e398
[ui] Make TreeOutline listen to "keyup" instead of "keydown".
The primary motivation for this is to allow the processing of "click"
events generated from "Enter" key presses in elements within a
TreeOutline. Before this CL, the "keydown" handler in the TreeOutline
would always consume the "Enter" key before the child element gets a
chance to turn that into a "click" event.
There's a secondary reason however, which is that up-events should be
preferred for accessibility reasons, see [^1] which describes this in
the context of so-called pointer device buttons, but the same applies
to keyboards as well.
[^1]: https://www.w3.org/WAI/WCAG21/Understanding/pointer-cancellation
Fixed: 373168872
Change-Id: I3b82e1fde221383279ee6a690af3e436fcc98033
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5939709
Auto-Submit: Benedikt Meurer <[email protected]>
Reviewed-by: Changhao Han <[email protected]>
Commit-Queue: Changhao Han <[email protected]>1 parent b6af601 commit de2e398
File tree
3 files changed
+17
-6
lines changed- front_end
- testing
- ui/legacy
3 files changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
166 | 177 | | |
167 | 178 | | |
168 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
0 commit comments