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

Del key doesn't work when you have all text (⌘A) selected #8320

Closed
jasmussen opened this issue Jul 31, 2018 · 2 comments
Closed

Del key doesn't work when you have all text (⌘A) selected #8320

jasmussen opened this issue Jul 31, 2018 · 2 comments
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended

Comments

@jasmussen
Copy link
Contributor

Possibly related to the recent work on expanding selection on multiple consecutive ⌘A's. GIF:

command a

Steps to reproduce:

  • Write text in a paragraph
  • Set caret in text
  • Press ⌘A

Observe that pressing Delete does not do anything.

@jasmussen jasmussen added the [Type] Bug An existing feature does not function as intended label Jul 31, 2018
@cassands
Copy link

I was curious and decided to give this a try and wound up with slightly more extensive issues.

[Delete]
When the paragraph being tested was above another paragraph, hitting delete merged the two together. If it was above something other than another paragraph nothing happened when pressing delete.

[Backspace]
Backspace misbehaved in a similar fashion. When the paragraph was manually selected, it deleted the space between that paragraph and the one before. Backspace worked normally with [Ctr + A]. Undo functioned normally with Backspace as well in all attempts.

[Ctr + A]
However, this only happened the first time [Ctr + A] was pressed. After undoing the above merge, I hit [Ctr + A] again. This time, it did not select the block text as expected, but instead selected quite literally everything on the page despite the cursor being in the block. This was true even when trying different blocks.

At this point, delete worked just fine to delete everything on the page. I then hit undo to continue.

[Undo]
After this, I decided to try manually selecting the text in the paragraph. When manually selected, the text could be deleted with [delete]. However it was impossible to get the text back with the [undo] button.

Exiting and re-entering the page reset the process. This happened both with and without plugins active (aside from Gutenberg) and on multiple posts, including new.

I don't know if this is all one issue or separate, but can confirm that delete is not behaving as expected for me either. Also I didn't want to make a duplicate issue post.

@designsimply
Copy link
Member

Closing in order to consolidate with #8268 which is a similar enough issue it would be good to combine them. Thank you @jasmussen for the report and @cassands for testing!

@designsimply designsimply added the [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable label Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants