Skip to content

Close alignment panel with Escape key#814

Open
deferredreward wants to merge 1 commit intounfoldingWord:developfrom
deferredreward:claude/alignment-panel-escape-key-DhLJD
Open

Close alignment panel with Escape key#814
deferredreward wants to merge 1 commit intounfoldingWord:developfrom
deferredreward:claude/alignment-panel-escape-key-DhLJD

Conversation

@deferredreward
Copy link
Copy Markdown

Closes #813

What this addresses

  • Pressing Escape while the alignment panel is open now closes it, equivalent to clicking Cancel

Changes

  • Added a keydown event listener in WordAlignerDialog that calls cancelAlignment() on Escape while the dialog is shown
  • Updated MUI Dialog's onClose (previously a no-op) to also call cancelAlignment(), consistent with the Escape key behavior

Test Instructions

  • Open the alignment panel by clicking the alignment icon on a verse
  • Press Escape — panel should close without saving changes
  • Verify it behaves identically to clicking the Cancel button

Pressing Escape now triggers cancelAlignment, same as clicking the Cancel button.
Also wires MUI Dialog's onClose to cancelAlignment so both keyboard and backdrop-click paths work.

https://claude.ai/code/session_01GFFH8RDgpXR1cnfXxukc3A
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 20, 2026

‼️ Deploy request for gateway-edit rejected.

Name Link
🔨 Latest commit 14f0189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Close alignment panel with Escape key

2 participants