Skip to content

feat(inline-input): add cancel button and global Esc to dismiss#105

Merged
johannesjo merged 1 commit into
johannesjo:mainfrom
FourWindff:feat/inline-input-dismiss
May 7, 2026
Merged

feat(inline-input): add cancel button and global Esc to dismiss#105
johannesjo merged 1 commit into
johannesjo:mainfrom
FourWindff:feat/inline-input-dismiss

Conversation

@FourWindff
Copy link
Copy Markdown
Contributor

Summary

The InlineInput.tsx component shown after selecting code in the diff viewer could not be cancelled once the input lost focus. This PR makes it always dismissable.

  • Add a global Escape keydown listener (on document, capture phase) so users can dismiss the popup at any time
  • Add an explicit cancel button (×) next to the submit button for mouse users
  • Clean up the keydown listener on unmount

The inline review/ask input shown after selecting code in the diff viewer
could not be cancelled once the input lost focus. Add a global keydown
listener for Escape and an explicit cancel button so users can always
dismiss the popup.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@johannesjo
Copy link
Copy Markdown
Owner

Thank you very much! <3

@johannesjo johannesjo merged commit af685eb into johannesjo:main May 7, 2026
2 checks passed
@FourWindff FourWindff deleted the feat/inline-input-dismiss branch May 8, 2026 13:46
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.

2 participants