Selecting text and pressing "delete" does not delete the selected text when the text cursor is at end of line

WHAT IS THE BUG

When editing a Page, suppose I want to delete a region. I select the text in a line with keyboard shortcuts and press delete. What happens next depends on where the text cursor is when I press ‘delete’.

If the cursor is before the selected text, then the selected text is deleted.
If the cursor is after the selected text, then the new-line is deleted and the line is merged with the subsequent line.

HOW TO REPRODUCE IT

  1. create a page
  2. write the following text as two separate lines:

abra
cadabra

  1. place the text cursor on the "abra’ line.
  2. press Home to move the cursor to the beginning of the line
  3. press ctrl-shift-end to select the text “abra”
  4. press delete
  5. observe that instead of deleting the selected text, you now have a single line with the text “abracadabra”

THE EXPECTED BEHAVIOR

The text “abra” should be deleted and the line should remain empty.

SYSTEM INFORMATION

  • Device:
    A laptop.
  • OS:
    Ubuntu 20.04.06
  • Anytype Version:
    v.0.31.52
2 Likes

This report has been added to our issue tracker and received by the Development Team.

1 Like

correction: instead of pressing ctrl-end to select to end of line, press ctrl-shift-end.

Thanks!

You can edit the original post with this updated info.