Word selection using keyboard

What’s The Bug?

When selecting text using Ctrl+Shift+arrow, second press is wrong

How To Reproduce It

  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”

The Expected Behavior

It should have selected “a test”

Device

PC/Desktop

OS

Win 10

Anytype Version

0.37.0

Technical Information

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

Initially reported here but moved to a different thread as requested: Selecting text with keyboard shortcut ignores last character - #6 by Razor

Thanks

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.

Aside from that, It would be a good idea for you to update Anytype to the latest version :wink:

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

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