p5.js-web-editor
p5.js-web-editor copied to clipboard
Replace Popup Doesn’t Open When Find Popup is Active (via UI or Shortcut)
p5.js version
No response
What is your operating system?
None
Web browser and version
No response
Actual Behavior
When the Find popup is open (triggered via UI or the Ctrl + F shortcut), attempting to open the Replace popup (via UI or Ctrl + H shortcut) fails. The Find popup remains active, and the Replace popup does not appear until the user manually closes the Find popup.
This affects the user experience, as expected behavior would be to automatically switch between Find and Replace popups seamlessly.
https://github.com/user-attachments/assets/917261af-b21e-4cdc-9ab4-b33cb9b5f7b9
Expected Behavior
When the Replace popup is triggered, the Find popup should automatically close, and the Replace popup should be immediately visible.
Steps to reproduce
- Open the p5.js Web Editor.
- Press Ctrl + F or click the Find option → the Find popup appears.
- Now press Ctrl + H or click the Replace Text option.