Selecting text with keyboard shortcut ignores last character

WHAT IS THE BUG

Everytime I start working on a new block in an object, if I try to select the text using keyboard shortcut “Shift + left arrow” the cursor would ignore the last character and starts selecting from last second character.

HOW TO REPRODUCE IT

  1. Open an object
  2. Write something on a block and try selecting the text using “Shift + left arrow” key combination.
  3. You could perhaps notice that the cursor would ignore the last character while selecting.

Here is a screen-recording for the same:

THE EXPECTED BEHAVIOR

The cursor should select the entire text and not skip the last character when selecting with keyboard shortcut “Shift + left arrow”.

SYSTEM INFORMATION

Device: HP Envy
OS: Windows 11
Anytype version: 0.35.1

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

Moreover, using “Ctrl+Shift+left arrow” has similar problem. But instead one last letter, in this way, the cursor would ignore the whole last word and starts selecting from last second word plus space character after it and before not selected last word.

I can confirm this.

Behavior is a bit different here, maybe due to changes between 0.35 and 0.37

  1. write “this is a test”
  2. ctrl+shift+left selects the word “test” (as expected)
  3. press ctrl+shift+left again, this unselects “test”, cursor moves to the beginning of the word “test” (should have selected “a test”)
  4. from now on, selection works as intended, until some content is modified.

Good luck bug hunting :four_leaf_clover:

OS version: win32 x64 10.0.19045
App version: 0.37.0
Build number: build on 2023-12-22 10:56:21 +0000 UTC from at #915dfb0b1865b0ceaea00acc362474958e6305bf(v0.30.3)
Library version: v0.30.3
Account ID: A9bnUQCzKFrckVYhfuPH1qdijaMk6WdVEaGtJAShthKDyXzb
Analytics ID: a03dcce7-6e83-44b4-8ac1-67048d9a2350
Device ID: 12D3KooWPnnpcnzuMB4DwyyNx53ZZ6YRUDCj6eVvuRGZeKaneaKB

Create a separate report please, it’s different issue

I reproduced the bug on Windows 11, but it’s worth pointing out that it only works after you’ve actually written something and not when you place the Text cursor somewhere in the text yourself.

Yeah, I’ll fix it

This issue has been fixed by the Development Team and will be implemented in an upcoming release.