a95becd582
The folder modal is built dynamically with no id in the fallback Esc handler's modal list, so Esc fell straight through to the slideover close and shut the editor behind it. The capture handler already bails on any open .modal; mirror that in the fallback by closing a stray .modal before reaching the slideover branch. Covers every dynamically-built modal, not just this one. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>