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

Strange behaviour when pressing tab after selecting text in code block #8911

Closed
3 tasks done
fenilgmehta opened this issue Aug 6, 2023 · 2 comments
Closed
3 tasks done
Assignees
Labels
Milestone

Comments

@fenilgmehta
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

  1. Create code block like below
    image
  2. Click and drag the mouse from point 1 to point 2
  3. Press tab
  4. Result will look like below
    image

Expected result

Expectation is that the selected text should just get indented. Here, something strange is happening.

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.9.8
- Operating System: Linux

Log file

-

More information

No response

@88250 88250 added the Bug label Aug 7, 2023
@Vanessa219 Vanessa219 added this to the 2.9.9 milestone Aug 7, 2023
Vanessa219 added a commit that referenced this issue Aug 7, 2023
@fenilgmehta
Copy link
Author

Thanks for the fix.
What does range.startContainer.nodeType !== 3 mean?

@Vanessa219
Copy link
Member

https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants