BlockNote
BlockNote copied to clipboard
Hitting enter on mobile devices leads to identation
Describe the bug When hitting enter several times on mobile devices (Android used here), there is always some indentation for each hit of enter.
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. 🙂
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.
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.
Seems to be an Android specific issue, will fix when we get to mobile UX but it's low prio for now