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

Insert a space after certain marks on left arrow key press so they don't trap the cursor. #64

Closed
b-kelly opened this issue Mar 17, 2021 · 0 comments
Labels
enhancement New feature or request mode - rich text Affects the editor's rich text (wysiwyg) mode

Comments

@b-kelly
Copy link
Collaborator

b-kelly commented Mar 17, 2021

This is a meta-entry to track items such as #31 and #49.

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

Specific marks (e.g. code_inline and kbd) appear to "trap" the cursor, even though their behavior is consistent to other marks (e.g. italics or bold). The common behavior is that activating a mark (e.g. ctrl+i for italics) will keep the cursor in that typing mode until it is again deactivated. You can see this behavior in other editors as well. However, some marks that seem like standalone chunks (kbd, code_inline) trigger an expectation in users that they can "leave" these chunks at will by manually moving the cursor with the arrow keys. You can see this behavior in Slack's code formatting.

Describe the solution you'd like

For a small subset of marks, when the user uses the right arrow key to move outside of it and there is no other content to the right of it, disable the mark and add a space. This is consistent with the behavior seen in Slack.

Describe alternatives you've considered

We could just not do anything and consider all marks to behave the same. However, since we have received independent user reports about this behavior, this would likely not be the most UX friendly option.

@b-kelly b-kelly added the enhancement New feature or request label Mar 17, 2021
@b-kelly b-kelly added the mode - rich text Affects the editor's rich text (wysiwyg) mode label Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mode - rich text Affects the editor's rich text (wysiwyg) mode
Projects
None yet
Development

No branches or pull requests

1 participant