Marktext: Cursor bug: Ctrl + right arrow key behaves odd

Created on 8 Aug 2019  ·  4Comments  ·  Source: marktext/marktext

Description

Hi Team,
Found a bug related to cursor moving right using ctrl+right key.
The ctrl+left key works fine.

  • [x] Can you reproduce the issue?

Steps to reproduce

  1. Have multiple lines of data with each line having multiple words.
  2. Use ctrl+ right arrow key to move the cursor to different words.
  3. Repeat until you reach the end of line and watch the cursor disappear to the bottom of the page.

Expected behavior:
ctrl+right should move one word right and when it reaches the end of a line, should move to the next line.

Actual behavior:
ctrl+right moves one word right and when it reaches the end of a line, it does not move to the next line but jumps to the bottom of the page.

bug2

Link to an example: [optional]

Versions

  • Mark Text: 0.15.0
  • Operating system: Windows
🐛 bug 🦏 list block

All 4 comments

Actually, the problem occurs when the document contains a list with checkboxes.

Without checkboxes, Ctrl-Right works fine throughout titles, paragraphs, lists, tables, etc.

However, when the cursor is at the start of the last word before a checkbox list, Ctrl-Right skips over the list and goes straight to the end of the document.

Similarly, as described by AamerShareef, when the cursor is at the start of the last word of a checkbox list item, Ctrl-Right goes straight to the end of the document.

If the cursor is positioned after the checkbox list, Ctrl-Right works fine again.

I'll mark this issue as bug but it need further investigation because I can only reproduce this issue with task list text ending with a dot.

@fxha Me too, the cursor will go to the end of document when the checkbox ends with ..

@fxha I can not reproduce this issue any more, can you confirm this, if this issue is no longer existed, we can close it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

1dancook picture 1dancook  ·  3Comments

AsierRF picture AsierRF  ·  3Comments

davidmichaelhuber picture davidmichaelhuber  ·  3Comments

stefnotch picture stefnotch  ·  4Comments

jrobbins picture jrobbins  ·  3Comments