social-app
social-app copied to clipboard
Accidentally deleting draft post when you mention an account
Describe the bug
When creating a post and mentioning an account, it is possible to blur from the text area and lose your content.
To Reproduce
- Click on "New Post"
- Mention someone (e.g.: write "@lukeberrypi.bsky.social")
- Place your cursor after the last character of the mention
- Press
cmd + ←
- You will navigate to the previous page (same as clicking the Back button on Chrome)
- Your original post is now lost
Expected behavior
The expected behavior is to navigate to the beginning of the line, and preserve the post content without unintended navigation.
Screenshots
https://github.com/user-attachments/assets/c96de9c0-c637-4b2c-af87-c40d8d3c94a8
Details
- Platform: macOS and Google Chrome
- Platform version: Sonoma 14.3.1 (23D60) and Chrome Version 128.0.6613.113 (Official Build) (arm64)
- App version: -
Additional context
Just for clarification, when the user is not focused on an text input element (as in
I noticed that mentions on posts are treated differently to normal text, because they can't even be selected via shift + ←
, or navigated from within the mention itself. I believe these are valuable clues to locating and solving this bug.