Simplenote-electron: Shift+DownArrow doesn't work on a line above a checklist item

Created on 12 Feb 2019  路  5Comments  路  Source: Automattic/simplenote-electron

Steps to reproduce

  1. Create note
  2. Create strcture of note with checklist
  3. Try to select text under cursor

What I expected

Selected text

What happened instead

Cant select

Simplenote version


1.4.1

OS version

Win 10 x64 1909

Screenshot / Video

ezgif-4-b4ef2fd8393c

[feature] checklist [feature] editor bug keyboard

All 5 comments

I can duplicate this, it seems to be specific to the checkboxes. I noticed that if you move the cursor over so that you wouldn't select a checkbox it works okay until you encounter another group of checkboxes (since the cursor is back at the beginning of the line).

It works fine if you select by clicking and dragging over text, it only seems to be a problem when using shift + arrow keys.

q8l88-mvee5

I got it. I just do not use the mouse and work mostly from the keyboard when editing a note.

I understand, I鈥檓 just providing more details about what works/doesn鈥檛 work

This is caused by the fact that technically, the caret cannot be positioned at offset 0 when a checkbox is at the beginning of the line. A fix will likely require a listener on Shift+DownArrow that calculates an adjusted caret position.

For keyboard users, a temporary workaround is to use Opt+Shift+RightArrow instead.

Resolved in #2148

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tavilla61 picture tavilla61  路  4Comments

sean185 picture sean185  路  4Comments

hindsholm picture hindsholm  路  4Comments

moniuch picture moniuch  路  3Comments

rbreaves picture rbreaves  路  3Comments