Editor: jump to start or end of the page, by using the arrow keys, not always work

What’s The Bug?

We can jump to the end of a Page by using the key combination Ctrl + “arrow down”.
Same thing with Ctrl + “arrow up” for jumping to the beginning of the Page.

But there is a bug:

– It works only if the cursor is placed in a textline, so that there is a blinking cursor visible.
– If no block is focused, because you’ve clicked with the mouse somewhere outside of a block (but still inside of the page off course), the key combinations don’t work.

How To Reproduce It

  1. Open a Page with so much content that there is a scrollbar on the right side visible.
  2. Place the cursor in a line so that it blinks.
  3. Use the mentioned key combinations. → Everything works as expected.
  4. Now click withe the mouse on a neutral position in the page (there should be no cursor visible now). → The key combinations no longer work!

The Expected Behavior

The mentioned key combinations should always work, no matter if a line is focused or not.

Additional Context

The bug annoys especially after doing a search i a Page.
Why?
– Because after closing the search box the cursor is nowhere. That’s why the mentioned key combination never works after searching. It’s alway necessary to perform a mouseclick on a random line, before it works again.

Device

Desktop PC

OS

Win 10

Anytype Version

v0.39.0

Technical Information

OS version: win32 x64 10.0.19045
App version: 0.39.0
Build number: build on 2024-03-05 15:37:42 +0000 UTC at #a7986fffadcc2031b1eb3372265db5dda05f4c6d (dirty)
Library version: v0.32.1
Anytype Identity: AAtt6aReARByswg2CbvZhveoJEEcnydfDu7U2VAkgJALsE7D
Analytics ID: 8a514008-4f5d-40d3-970f-a0d241b63af2
Device ID: 12D3KooWGqd6JSafCCcEwvnke5JAVgBNnuR9gGQeSBQ5HdUboWtG

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