Commit 0e25f6d
Don't steal door focus after delayed auto-spawn on detach
The auto-spawn was introduced with a 440ms delay so the kill/detach
animation can finish before the new pane animates in. But detachPanel
calls selectDoor(id) synchronously, then 440ms later the delayed spawn
called selectPanel(newId) and stole focus off the just-detached door.
Only call selectPanel if nothing is selected (the kill path clears
selection before the delay). On detach the door selection stays put.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 000b4fb commit 0e25f6d
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1490 | 1490 | | |
1491 | 1491 | | |
1492 | 1492 | | |
1493 | | - | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
1494 | 1499 | | |
1495 | 1500 | | |
1496 | 1501 | | |
| |||
0 commit comments