Skip to content
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

Fix composer shortcut detaching a reply #7041

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Fix composer shortcut detaching a reply #7041

merged 1 commit into from
Dec 10, 2024

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Dec 10, 2024

Fixes #6951

  1. Start typing a reply
  2. Focus outside the text field
  3. Press N

Before, it would detach the reply.

After the fix, it doesn't.

The fix itself is a bit more generic — basically, never auto-dismiss a reply in progress without a manual user action. This might apply to other cases (intents?) but I think the principle still holds. Dismiss the composer manually first, then something new can appear in there. If some piece of code wants to intentionally close the composer, it can call closeComposer.

Before

before.mov

After

after.mov

@arcalinea arcalinea temporarily deployed to fix-reply-shortcut - social-app PR #7041 December 10, 2024 21:14 — with Render Destroyed
Copy link
Member

@estrattonbailey estrattonbailey left a comment

Choose a reason for hiding this comment

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

Oh very nice, this sounds like a great fix imo

@gaearon gaearon merged commit 8615598 into main Dec 10, 2024
6 checks passed
@gaearon gaearon deleted the fix-reply-shortcut branch December 10, 2024 21:19
Copy link

Old size New size Diff
7.74 MB 7.74 MB 8 B (0.00%)

Signez pushed a commit to Signez/bsky-social-app that referenced this pull request Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"New Post" hotkey can trigger in "Reply" mode, detaching the reply.
3 participants