Commit cab9f4f
ref(dashboards): Use useHotkeys for ESC key handling in widget builder
Replace raw useEffect + addEventListener with the useHotkeys hook from
@sentry/scraps/hotkey, matching the pattern used by the global drawer.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 0373efb commit cab9f4f
File tree
1 file changed
+12
-17
lines changed- static/app/views/dashboards/widgetBuilder/components
1 file changed
+12
-17
lines changedLines changed: 12 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 1 | + | |
9 | 2 | | |
10 | 3 | | |
11 | 4 | | |
12 | 5 | | |
13 | 6 | | |
14 | 7 | | |
| 8 | + | |
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
| |||
236 | 230 | | |
237 | 231 | | |
238 | 232 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
248 | 243 | | |
249 | 244 | | |
250 | 245 | | |
| |||
0 commit comments