streetwriters / notesnook

A fully open source & end-to-end encrypted note taking alternative to Evernote.
https://notesnook.com/
GNU General Public License v3.0
9.54k stars 586 forks source link

Moving cursor to the right closes keyboard #757

Open candroid-man opened 2 years ago

candroid-man commented 2 years ago

What happened?

This is a little hard to explain, but I will try my best (it is easier to see using the steps to reproduce).

Essentially, when moving the cursor to a point in the note that doesn't exist, it closes the keyboard rather than just doing nothing. To get the cursor to behave in this way, you have to use the swipe gesture on the keyboard on Android and iOS that moves the cursor in whichever way you swipe. If you swipe right to move the cursor to the right when there is no more space or text, it results in the keyboard closing.

Steps to reproduce the problem

  1. In any note with text, move your cursor to the last line of the note
  2. Using the space bar swipe gesture, move the cursor to the right
  3. See error

This also happens when trying to delete all text from a task, using the swipe gesture on the backspace key to delete chunks of text at once.

  1. Create a new task list
  2. Create a few tasks with text
  3. Using the backspace swipe gesture, highlight all the text to delete, and swipe all the way to the left even after all text is selected
  4. See error

Version

2.1.4

Platform/OS

Android

Relevant log output

No response

thecodrr commented 2 years ago

I was able to reproduce this quite easily. Will fix ASAP.

thecodrr commented 1 year ago

This issue is linked to Prosemirror. I opened an issue there: https://github.com/ProseMirror/prosemirror/issues/1331

airdward commented 1 year ago

Has this issue been fixed?