51f72e560a
Same Esc fall-through class: the menu's Esc handler was bubble-phase and didn't stop the keystroke, so the slideover capture handler fired first and popped the discard prompt while the menu also hid. Capture + stopPropagation, gated on the menu being visible; registered before the slideover handler (installCustomContextMenu runs at the top of init) so ordering is guaranteed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>