-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add ability to select posts/comments #1272
Conversation
Just a quick note on this. The original bug implied that "Share"/"Web search" might be useful things things to have in the selection menu. For example, here's what those look like in the Android system webview.
Share has already been added to the menu for Android in flutter/flutter#141447, but it doesn't appear to be in a stable release yet (I tried the latest,
Regarding search, it seems like this PR (flutter/flutter#139361) added support for querying custom text actions (i.e., allowing other apps to insert themselves into the text actions menu), but it's unclear to me whether this would support a "Web search" action like we see in system apps. For context, here is the umbrella issue: flutter/flutter#107578. Anyway, all that to say, there's more to do here, but we need to wait for some Flutter upgrades. |
Just wanted to say thanks for doing this! This is something that was very much lacking and would be super useful to have. Just food for thought: do you think its better to have in-line selection of text, or bring up a modal which then allows free-selection of text? I've been looking at other apps, and it seems like most, if not all of them decided to use the modal route for selection of text. It does seem like there are some advantages to the modal approach. For example,
RPReplay_Final1713459867.mp4 |
One drawback of using a modal though that I just thought of, is that we would want to be able to perform text selection when replying to a post/comment. I believe I made a regression in #1165 where the content of the post/comment was no longer selectable (because it's now using |
Ah, I think we always want that to be selectable. I also had an idea that if you selected text in the reply comment and pressed the markdown quote button, it would immediatley put that selected text in the quote (without having to copy/paste). That could also go along with the ability to view raw in the reply area, so you can quote something exactly how it was originally formatted. But that can come later. 😊 |
Just made a PR to fix this! #1315 |
If its okay with you, I'll close this PR in favour of #1327? |
Pull Request Description
This PR adds support for free selection mode of posts and comments. This works whether in markdown (source) mode or not. Note that for comments, when in selectable mode, the long-press menu is only accessible from the metadata area. Since this may not be obvious to users, I've added an explicit button to exit selectable mode.
P.S. Can you make sure
cupertinoTextSelectionControls
looks good on iOS?Issue Being Fixed
Issue Number: #1127
Screenshots / Recordings
qemu-system-x86_64_BiVazhB9Ua.mp4
Checklist
semanticLabel
s where applicable for accessibility?