Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(editor): Close Find popup when Replace is triggered (Fixes #3428) #3431

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

LalitNarayanYadav
Copy link

Description

This PR resolves issue #3428 where the Replace popup would fail to open when the Find popup was active. The fix ensures smooth switching between Find and Replace dialogs.

Changes

  • Modified showReplace() to close active Find dialog before opening Replace
  • Updated keyboard shortcut handlers in extraKeys configuration
  • Ensured consistent behavior for both UI buttons and keyboard shortcuts

Testing

Verified Scenarios

✅ Find (Ctrl+F) → Replace (Ctrl+H)
✅ Click Find → Click Replace
✅ Mixed usage (shortcuts + UI buttons)
✅ Persistent search highlights during switches
✅ No regression in core search functionality

Checklist

…rtcut

Close active Find dialog before opening Replace popup for both UI and keyboard triggers.
Copy link

welcome bot commented Apr 5, 2025

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already.

@LalitNarayanYadav
Copy link
Author

Hi @therewasaguy @limzykenneth, could you please review this fix for #3428 when you have time?
This resolves the Find/Replace popup conflict. Thank you!

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.

1 participant