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

bug(rich-text) down-arrow in code block exits the code block even when more lines in the code block below cursor #191

Open
yellis opened this issue Jul 17, 2022 · 1 comment
Labels
bug Something isn't working mode - rich text Affects the editor's rich text (wysiwyg) mode

Comments

@yellis
Copy link
Contributor

yellis commented Jul 17, 2022

Describe the bug
Pressing the down arrow key in a code blocks with multiple lines moves out of the code block, instead of down to the next line in the code block.

To Reproduce

  1. RT mode
  2. Add text with multiple lines, make into code block
  3. Cursor on the top line
  4. Down arrow on keyboard
  5. Observe: cursor skips remaining lines in the code block, exits code block

Expected behavior
If additional lines below cursor in the code block, down arrow should move to next line. Down arrow should only exit code block when cursor is on the last line in the code block.

Screenshots
demo

In demo, user pressed: down up up

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@yellis yellis added bug Something isn't working mode - rich text Affects the editor's rich text (wysiwyg) mode labels Jul 17, 2022
@yellis yellis changed the title bug(richtext) down-arrow in code block exits the code block even when more lines in the code block below cursor bug(rich-text) down-arrow in code block exits the code block even when more lines in the code block below cursor Jul 17, 2022
@KyleMit
Copy link
Collaborator

KyleMit commented Aug 18, 2022

Potentially related to #199 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mode - rich text Affects the editor's rich text (wysiwyg) mode
Projects
Status: Todo
Development

No branches or pull requests

2 participants