Skip to content

Adjustments to the config error window #1571

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

Closed
wants to merge 2 commits into from
Closed

Conversation

nikitabobko
Copy link
Owner

  • Hide minimize button
  • Enter to close the window even when TextEditor is focused

@nikitabobko nikitabobko force-pushed the bobko/config-window branch from cfb0ccc to f8b1ba3 Compare July 19, 2025 09:33
@nikitabobko
Copy link
Owner Author

cc @mobile-ar would be happy if you could leave your review

@nikitabobko nikitabobko force-pushed the bobko/config-window branch from f8b1ba3 to 455d46b Compare July 19, 2025 09:39
We no longer need `onExitCommand`, because enter now works even if the TextEditor is focused
@nikitabobko nikitabobko force-pushed the bobko/config-window branch from 455d46b to a441f1c Compare July 19, 2025 09:41
let cancelOnEnterBinding: Binding<String> = Binding(
get: { model.message?.body ?? "" },
set: { newText in
if let prev = model.message?.body.count(where: \.isNewline), newText.count(where: \.isNewline) > prev {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ugly, but it's the best I found

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your option is better than my .onExitCommand. It's a little more complex in code but for sure provides better usability for the final user.
It might be the only option because all .keyPress option are only available in macOS 14.0 or newer.

nikitabobko added a commit that referenced this pull request Jul 19, 2025
We no longer need `onExitCommand`, because enter now works even if the TextEditor is focused

closes #1571
@nikitabobko nikitabobko added the pr-merged Pull Request is merged label Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-merged Pull Request is merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants