Enter key and back button not working properly android 12

android 12
keyboard button back and enter not working properly
it works sometimes and it wont work sometimes

after adding a new linked page enter button is not working most of the time

Steps to reproduce

type

  • [[new page]]
  • [[new page 1]]
    -[[new page 2]]

on android 12 ( tested on samsung s7+ )
here enter key and back button is having difficulty in moving the cursor to new line or deleting the characters

Expected result

cursor don’t move to next line on clicking enter

Actual result

Environment

  • Operating system: android 12

workaround of the issue

after " [[new page " add a space then click enter twice ( this works sometimes )

if it didn’t worked , “]]” => this would be on new line click back space , then click enter twice