Commit ad02d5d
fix: use capture phase and stopImmediatePropagation for ESC key handling
- Register keydown listener in capture phase (true) so Preview handler
fires before any bubble-phase listeners (e.g. parent Dialog)
- Replace stopPropagation with stopImmediatePropagation to also block
other capture-phase listeners registered after this one
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b3c0dc6 commit ad02d5d
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
0 commit comments