[iOS/iPadOS] Return key delay on blank line

Bug report

There’s a delay that occurs when pressing Return on a blank line before the input is registered by the app. This happens with both the software (on-screen) and hardware keyboards. When the Return key is pressed rapidly, some of those keypresses will not register.

Environment

  • Platform: iOS/iPadOS
  • Platform version: iOS/iPadOS 18.5
  • App Version: v5.6.4 (160)

How to reproduce

  1. Open any note
  2. Position cursor on blank line
  3. Press Return. The cursor will wait for a few milliseconds before registering the Return key. Try doing it a few times rapidly. Not all keystrokes will register.

Video:

1 Like

Hi @J_N ,

Thanks for the detailed explanation! Got it to reproduce on my device.
It looks like it only happens when the cursor is at the end of the note.
But it doesn’t happen in the middle of the note.

I’ll look into what’s causing this.

I also found that it doesn’t happen on the next-gen editor that I’m currently building (as I reported the progress here).
So, please allow me to focus on developing it rather than fixing this issue.

Interestingly, I’m getting the exact same behaviour in Obsidian for iOS/iPadOS, and there it’s also only at the end of the note, and not in the middle. I’m not getting this in native apps (Bear, Apple Notes, Ulysses, Pages, etc.) Maybe it’s a framework thing then?

In any case, happy for you to sort this out with NexGen editor :slight_smile:

I rolled back to the older version, but it still happened, so the issue should have been residing since before.

Yes, Inkdrop uses CodeMirror, a highly extensible text editor library, and I’m currently migrating from v5 to v6 for the desktop app. The mobile app already uses v6.

It’s interesting that it also happens in Obsidian :thinking: