[Android] Text input works strangely with non-default keyboard

Bug report

I have recently switched from the default Google keyboard on my Pixel 7 Pro device to a third party keyboard called FUTO Keyboard, which works fine in every app except Inkdrop. I should add that I haven’t tried changing back to GBoard to check if the issues still persist.

It’s a bit hard to explain the issues as there are multiple, but I have experienced the following:

  • Sometimes when writing text it would delete characters to the right of the cursor, like in insert mode on a desktop
  • Sometimes when opening a note and pressing somewhere to place the cursor the whole text block at the cursor would get replaced with whatever is in the keyboard clipboard or whatever was last copied in Inkdrop
  • Using the keyboards “swipe to navigate left/right” feature would simply delete characters when navigating
  • Often unable to simply type in a note as it would sometimes delete characters

Environment

  • Platform: Android
  • Platform version: 15
  • App Version: v5.6.3 (120)

How to reproduce

I have no specific steps besides using the FUTO Keyboard, unfortunately the issues are very inconsistent.

Hi Magnus,

I guess it would be a bug in CodeMirror since it depends on software keyboards.
Android’s input system is so inconsistent, and it may affect the editor.
Can you reproduce it on the CM’s website?

I have not been able to reproduce the bug on CM’s website.

I also tested Inkdrop earlier today and at the time I wasn’t able to reproduce the issues listed in the original post, I was however experiencing a different issue that where I was unable to insert newlines using the enter button.

Additionally just before posting this response I tried to test the bug again in Inkdrop and now the original issues appeared. I still don’t have steps to reproduce that work every time but this time I noticed that when navigating from one note to another some text from the line that the cursor was on in the previous note would get inserted where I placed the cursor in the new note.

maybe attaching a screenshot would be helpful to understand what is happening.
I’m currently working on CM6 for the desktop app, and this work will be merged into the mobile editor. Then, I will investigate it further.

Alright. I’ve been unable to capture it in a screenshot or video in a way that meaningfully shows the issue but I’ll keep you posted if I manage to.

1 Like

I’ve also been experiencing this odd issue since Feb, with v5.5 using Android. I moved to a new Samsung phone and the problem continues. It is such an odd issue, as it does not happen right away. If I continue to edit a note, after a while, it will show its ugly face. And I have ruined several notes by simply trying to copy part of a note. This is one wish I have with Inkdrop with a functionality to lock or default to read-only mode, therefore this issue wouldn’t be such a pain. Yes, preview in markdown is essentially read-only mode, but copy does not work the same and you can’t set Markdown preview to force it by default.

And with the recent version there is another issue that has appeared, and that is I cannot move a note to another notebook.

I also reported the issue with pasting from the Web after Web clipping was added. There was an addon, I do not recall the name, and it used to work without flaw, before Web clipping was added. But there are those times when it doesn’t. What is strange, most Youtube links will work, but there are times it does not work, and simply pastes the raw URL instead of the description/URL markdown link.

Because I depend on a note app for my technical job I have sadly made the choice to move away from Inkdrop the past month. I’ve been using Upnote for the past year, and I am impressed with the continue updates to fix issues and add new functionality. I was only using Upnote for a Wiki Knowledgebase, and Inkdrop was prime note app for my personal notes, work issues/purchases, Todo lists, and also a journal/log.

I do not want to leave Inkdrop. But I really need an app where the issues are minimal. Since the price increase, oddly so have the issues increased.

– Dale

Hi @Helix_Munn
I understand how annoying this is. Can you share your setup, including device name, OS version, and keyboard?

@Magnus, I pushed build 122 now, which has updated CM6 to the latest. Can you check it out?

Version diff:

-        "@codemirror/commands": "^6.8.0",
+        "@codemirror/commands": "^6.8.1",
         "@codemirror/lang-markdown": "^6.3.2",
-        "@codemirror/language": "^6.10.8",
+        "@codemirror/language": "^6.11.0",
         "@codemirror/language-data": "^6.5.1",
-        "@codemirror/search": "^6.5.9",
+        "@codemirror/search": "^6.5.10",
         "@codemirror/state": "^6.5.2",
-        "@codemirror/view": "^6.36.3",
+        "@codemirror/view": "^6.36.7",

CodeMirror Changelog:

https://codemirror.net/docs/changelog/

However, there is no mention of any Android issues in these updates.

I just updated to 122 and am still experiencing the issue. I did however manage to reproduce it fairly clearly using the following steps (it might also happen in different cases).

  1. Go into a note and highlight something
  2. Copy it using the keyboard copy button
  3. Go back to the notes list
  4. Go into a different note (it should contain a markdown link wrapping to multiple lines in a bullet list)
  5. Click on the link text
  6. Hold your finger where you placed the cursor and move the cursor to somewhere else in the bullet link on another line
  7. Observe the text breaking and stuff getting shuffled around

I am however unable to record the error as I cannot navigate to a notebook that doesn’t contain content I don’t want to share due to the following new issue I am experiencing:

  • I am now unable to navigate to some of my notebook and it seems to vary. At some point I couldn’t navigate to any notebook while at a different time I just couldn’t navigate to nested notebooks.