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

Highlighted text is not always deleted when pressing "delete" key on keyboard #48747

Closed
twstokes opened this issue Mar 3, 2023 · 2 comments · Fixed by #53429
Closed

Highlighted text is not always deleted when pressing "delete" key on keyboard #48747

twstokes opened this issue Mar 3, 2023 · 2 comments · Fixed by #53429
Assignees
Labels
[Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended

Comments

@twstokes
Copy link
Contributor

twstokes commented Mar 3, 2023

Description

Under the conditions provided in the step-by-step reproduction instructions:

Expected behavior:

Text is deleted.

Actual behavior:

Text is not deleted.

Step-by-step reproduction instructions

Using a self-hosted WordPress site:

  1. Add a new post
  2. Switch to Code editor mode
  3. Paste in the following:
<!-- wp:table -->
<figure class="wp-block-table"><table><tbody><tr><td><strong>Site Editor (MVP)</strong></td><td>Android tasks were started, <a href="https://www.google.com">but we're now assessing how to move forward due to developer availability</a>. The project will need to be paused if no developers are available to help with native portions. (<a href="https://www.google.com">latest update</a>)</td></tr></tbody></table></figure>
<!-- /wp:table -->
  1. Exit Code editor
  2. With the mouse cursor, select the second column of text (see video). Note: The direction the text is selected may have an impact on the issue, e.g. selecting from top left to bottom right or vice versa
  3. Press "delete" on the keyboard

Screenshots, screen recording, code snippet

Unmute to hear delete being pressed.

Screen.Recording.2023-03-03.at.14.21.16.mov

Environment info

  • WordPress 6.1.1
  • Chrome Version 110.0.5481.177 (Official Build) (arm64)
  • MacBook Pro M1 / Monterey using built-in keyboard
  • Twenty Twenty theme

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@twstokes twstokes added the [Type] Bug An existing feature does not function as intended label Mar 3, 2023
@twstokes twstokes changed the title Highlighting text is not always deleted when pressing "delete" key on keyboard Highlighted text is not always deleted when pressing "delete" key on keyboard Mar 3, 2023
@twstokes twstokes added the [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... label Mar 3, 2023
@annezazu
Copy link
Contributor

annezazu commented Mar 9, 2023

@ellatrix in case you can dig into this! (or @mcsf).

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] Bug An existing feature does not function as intended
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants