BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Hitting enter on mobile devices leads to identation

Open junoriosity opened this issue 1 year ago • 3 comments

Describe the bug When hitting enter several times on mobile devices (Android used here), there is always some indentation for each hit of enter.

Bildschirmfoto 2023-07-22 um 23 13 45

To Reproduce Use a mobile device, preferably Android, but perhaps also iOS, and hit enter several times.

Misc

  • Browser: Chrome

Let me know if you need some further information. 🙂

junoriosity avatar Jul 22 '23 21:07 junoriosity

I found the same indentation issue when I used the bullet list in the Android Chrome browser, maybe the indentation issue is connected to the bullet list issue.

Kashifwahaj avatar Dec 06 '23 14:12 Kashifwahaj

It's caused by event.keyCode === 229 Android does it for some reason. Really annoying.

setTimeout(() => { editor.unnestBlock(); }, 100);

I have a workaround that listens for 229 and undoes the indentation.

Ideally a fix would be listening for that and not doing the indentation in the source code.

MichaelReaNZ avatar Feb 15 '24 16:02 MichaelReaNZ

Seems to be an Android specific issue, will fix when we get to mobile UX but it's low prio for now

matthewlipski avatar Jun 11 '24 10:06 matthewlipski