Skip to content

Template editor should retain where the cursor was #18670

@Arthur-Milchior

Description

@Arthur-Milchior

How to reproduce:

  • open a card,
  • open the note editor
  • open the template edito
  • tap at some place in the middle of the front template
  • select the back of the card
  • select the front of the card

Expected:

  • the cursor (or ideally the selection) should be the same as before

Actual:

  • cursor is back at position 0

How to reproduce:

  • tap at some place in the middle of the front template
  • select another card
  • select back the first card

Expected:

  • the cursor (or ideally the selection) should be the same as before

Actual:

  • The cursor is missing. Still, if you type on a physical keyboard, it seems to register the touch

This is even more surprising that there are values such as tabToCursorPosition that seems to indicate that at some point we expected to recall where each cursor where. But this value makes little sense, as it contains one entry by index, and we should have also an entry for CSS, and a different entry for start and stop.

This value seems to be used only in TemplatePagerAdapter, but only during CreateFragment, not when the pages are loaded back later.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions