mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-22 01:18:36 +03:00

Before this change I couldn't submit the dialog with return. Or cmd+return. From what I understand the problem was that the `TextEditor` always steals the default focus. I tried a bunch of workarounds I found to set the default focus on the button, but none of them worked. Then I thought: do we even need a full-on Text*Editor*? So I switched `TextEditor` to `Text` with a `ScrollView`: things look the same, text is selectable and scrollable, but I can hit return to submit the dialog.