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

Set the cursor to the clicked position if a text block is selected via click #12217

Closed
florianbrinkmann opened this issue Nov 22, 2018 · 6 comments
Labels
[Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Enhancement A suggestion for improvement.

Comments

@florianbrinkmann
Copy link

Is your feature request related to a problem? Please describe.

Selecting a paragraph block (or headline block, et cetera) via clicking sets the cursor to the beginning of the block. I think it would be nice to set the cursor to the position the user clicked – at least for me it is like an additional step because I need to set the cursor to the wanted position after selecting the block.

Describe the solution you'd like

Directly set the cursor to the clicked position.

@designsimply designsimply added [Type] Enhancement A suggestion for improvement. [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... labels Nov 23, 2018
@designsimply
Copy link
Member

Tested and confirmed that clicking on a paragraph block places the cursor at the beginning of the paragraph (tested with WordPress 4.9.8 and Gutenberg bd897f6cb (>4.5.1) using Firefox 63.0.3 on macOS 10.13.6).

My take: I personally like the suggestion of adding it to the bottom because it seems more inline with a writing flow of adding new content to below the current content clicked.

@florianbrinkmann
Copy link
Author

Bottom would be better, but (in my opinion) also not ideal. For example, if you see a paragraph with a word you want to remove or modify. Then you click on that word to place the cursor there, but the cursor first jumps to the beginning (or end) if that click is the select-the-block-click. I think it would be great, if the cursor could directly be placed (in the example) on that word, so no additional click is needed before I can modify/edit the word.

@rpkoller
Copy link

@florianbrinkmann in Safari and Chrome (on MacOS) Gutenberg is already behaving like you requested ( tested in RC1 on MacOS). Only Firefox is behaving that way, other browsers I haven't tested. @designsimply so I would file it as a bug instead of a feature request.

@chrisvanpatten
Copy link
Contributor

I’m about 90% sure there is an issue open for this. I believe @danielbachhuber might have reported it...?

@chrisvanpatten
Copy link
Contributor

Found it, this is a dupe of #11812! I'll close this so we can consolidate the discussion there, where it's classified as a bug already :) Thanks for the reports/confirmations, y'all!

@florianbrinkmann
Copy link
Author

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants