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.17k stars 346 forks source link

Override events when Melty popup is open #76

Open jacksondc opened 2 months ago

jacksondc commented 2 months ago

We want to be able to override keyboard shortcuts while the Melty popup is open. For example, I'd like to take over cmd+n for accept/reject actions. Calling stopPropagation on key events doesn't seem to work for this—maybe we're not first in line for events?

Related concern: if we want to let the user take certain actions while the Melty popup is open—e.g., file navigation, command palette, menu bar actions (and associated shortcuts)—we need to be careful to make sure they still work and Melty keybindings don't conflict. But I think we can sort this out later.