-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] On Android Chromium, pressing newline after header1/2/3 causes editor to lose focus #129
Comments
Hi there, Thanks a lot for reporting this! Will keep this thread posted once I know more, Best, |
Thanks once again for filing this and for your patience! Seems like creating headers using markdown is now broken badly in general (on both iOS and Android) and we're working on fixes for these as we speak. Basically the issue seems to be that every mobile OS's software keyboard acts differently / report keystrokes/text-input differently. – i.e. GBoard sends entire words once you select an autocorrect recommendation from the list... it sends the whole word, all its characters, all at the same time [acts almost like pasting], whereas other keyboards send letter-by-letter. So if you were to try and do key-by-key / letter-by-letter shortcut detection,
with GBoard you'd get : and may cause our markdown shortcut detector to miss things. And due to the fact that each android vendor has its own software keyboard (🤦🏻♂️) there's no easy way for us to meaningfully detect / code exceptions like "on android do this, on iOS do this" etc... + since on both OSes you can use external keyboards, and there's no way for apps / websites to detect which keyboard is in use, we'll need a more generalized approach. We're now trying to come up with a smarter and more generalized strategy to handle these, and hope to have fixes out for this soon! Let me know if you discover more markdown edge-case scenarios in this thread – and we'll try to address all as quickly as humanly possible! Apologies for the inconveniences! Best, |
Thanks so much for the update, and my apologies as I totally missed that other thread in my search
I do use gboard, although I may be misunderstanding because I rarely use auto-correct when creating a header. When I write:
Cryptee shifts over to the Of course I might well just be misunderstanding your response and you understand the problem |
Hey there! So we're going to have to re-do some of the groundwork to make sure this works as expected on all OSes, and all types of different keyboards. Chances are this will mean re-writing / updating some or all of our markdown shortcut detector. We're looking into fixing this and many other markdown shortcut related issues this week, and will keep you posted once I find out more. 👍🏻 In the meantime, if you run into other similar issues, and happen to have an extra minute, shoot them my way here! It'll help us prepare even stronger test cases! |
Hi there, Just to be 100% sure, could you confirm this is also the case with your device as well? |
You are indeed correct, I just tested this on my phone and can confirm it also doesn't work with the editor tools |
Thanks for bearing with this, I've got some funky news. Looks like this is an Android-predictive-keyboard bug. We didn't catch it in our tests, since our tests didn't use GBoard or alike predictive keyboards. And looks like we're not the only ones who got hit by this sudden change. OneNote, Workflowy, CKEditor, Quill, possibly another one : wasabeef/richeditor-android#257 etc etc Since we can't really detect the specific brand of keyboard or type of keyboard our users are using, what we'll do instead on android is to watch for "enter" key events (since we're not getting any How does this relate to this bug John? you might rightfully ask. Now that we know what's up, we're working on a fix, and building extensive test cases to make sure things work as expected. Thanks for standing by while we address this nightmare of a situation gboard / chromium introduced. Best, |
Small update. The problem does not happen with alternative keyboards, but those do not always use IME composition. It seems that after the event.keyCode === 229, there is no following keydown event with the newline. Normal <textarea> tags do not suffer from this problem. Seems like this has been around for a while now. We're going to try our best to compensate for this, but given that it's a keyboard-specific bug, it's going to be a hacky fix. Stay tuned for more fun updates 😂. 🤦🏻♂️ |
+ You can now attach / link folders inline 🎉 + Fixes a few bugs caused by #99 + Adds a few more tools to mobile doc editor + Fixes #77 + Fixes #130 + This fixes #130, as well as a bunch of other side bugs caused by indent/outdent in clodeblocks. (i.e. things like +1 extra line indenting etc on some devices. + Something to help remedy #129 + helps remedy some more stuff for #105 + renaming “account” to “settings” in home screen + fixes / prevents moving folders onto themselves A strangely awesome catch by a dedicated user! If you try to move a folder onto itself, it was breaking the UI. It’s now blocked on server side, and adding cosmetic show stoppers on UI to make sure things are safe! + DOMPurify update to 2.3.0 + Firebase version 8.7.1 Update
Describe the bug
On mobile, after using markdown to create a header, hitting
<return>
to create a newline closes the keyboardTo Reproduce
#<space>Test<return>
Expected behavior
An
h1
is created, the cursor is on a new line, and the keyboard is still openActual Behavior
An
h1
is created, the cursor is on a new line, the keyboard is closedSystem Information (please complete the following information):
The text was updated successfully, but these errors were encountered: