meltylabs / melty

Chat first code editor. To download the packaged app:
https://docs.google.com/forms/d/e/1FAIpQLSc6uBe0ea26q7Iq0Co_q5fjW2nypUl8G_Is5M_6t8n7wZHuPA/viewform
MIT License
5.16k stars 346 forks source link

Fix escape handling #71

Closed jacksondc closed 2 months ago

jacksondc commented 2 months ago

Right now, pressing "escape" from the file picker dialog closes both the dialog and the Melty popup. Expected behavior: pressing escape once closes the file picker, pressing escape a second time closes the popup.

First thing to check is whether we can solve this by calling preventDefault in the file picker escape handling.