Skip to content
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

Newline/editing bugs in Android Browser #3654

Open
mihailik opened this issue Nov 20, 2015 · 9 comments

Comments

Projects
None yet
9 participants
@mihailik
Copy link
Contributor

commented Nov 20, 2015

One problem is that you cannot easily delete newlines. Backspace doesn't work, but you can delete them as part of selection (shift-arrows or long-touch and high-precision dragging).

Another is that if you mess with this deletion for a bit, sometimes editor starts adding a newline for every character you type. I think that internal invisible input area can get a newline stuck in there.

This one happens in Android Browser coming with the OS
Don't confuse 'Browser' with Chrome mobile. Browser comes with Android open-source platform.
This 'Browser' thing reports itself as Chrome 33.0.0.0 in navigator.userAgent, so it's probably uses older cut of the Chrome under the hood.

However that Browser is a widespread app. And it probably closely matches WebView used to embed browser in other Android apps. So it really is a noticeable usage share.

Also see #3653 Arrow keys hide keyboard - Chrome mobile 46

@burdiuz

This comment has been minimized.

Copy link

commented Mar 9, 2017

Experienced same behavior, were there no solution for this? I've found these issues with unexpected newlines when entering text(if you pause and enter new symbol. newline appears before new input), but second was "fixed" by disabling "active-line" addon.

@marijnh

This comment has been minimized.

Copy link
Member

commented Mar 9, 2017

@burdiuz Are you seeing the issue in Chrome or in the 'Android Browser'? As far as I know 'Android Browser' has not been on life support since 2013, and Google is trying to get people to switch to Chrome, so I'm not really seeing the stock browser as an important target anymore.

@swill

This comment has been minimized.

Copy link

commented Jul 26, 2017

I was trying to find the source of a problem that made editing on Android (in Chrome) completely impossible. Newlines added all the time, the keyboard closing as I type, backspace not working as expected, really, it was too many issues to count. I removed all of the options other than mode and theme and then systematically added back one option at a time and redeployed my application and tested. It turns out that the active-line addon was the source of all my pain.

I am using the mode: 'javascript'. I am not seeing all of the strange behavior I was seeing in my environment in the active-line demo (https://codemirror.net/demo/activeline.html), but there is some strange behavior in that demo on Android as it is.

Hope this helps others...

@chinchang

This comment has been minimized.

Copy link

commented Apr 14, 2018

I see exactly all the issues mentioned by @swill on Android Chrome. But even removing active-line plugin doesn't fix it. Infact the issue is same on this CodeMirror demo -> https://codemirror.net/demo/theme.html

@0joshuaolson1

This comment has been minimized.

Copy link

commented Jul 11, 2018

Yay, I found the issue GitHub's having?

@adrianheine

This comment has been minimized.

Copy link
Contributor

commented Sep 6, 2018

This is a issue that's difficult to debug and would probably require a lot of work to fix.

We are working on a rewrite (CodeMirror 6) that will hopefully address this issue, and we are currently raising money for this work: See the announcement for more information about the rewrite and a demo.

Note that CodeMirror 6 is by no means stable or usable in production, yet. It is highly unlikely that we pick up this issue for CodeMirror 5, though.

@chinchang

This comment has been minimized.

Copy link

commented Sep 6, 2018

Thanks for updating @adrianheine 👍

@AdamZaczek

This comment has been minimized.

Copy link

commented Apr 22, 2019

Just a heads up, this issue appears in chrome mobile as well, regardless of the version as far as I'm aware.
It also has a bit different behavior depending on used keyboard - code comes back all the time on samsung keyboard and it only comes back after removing all the code/stopping delete press on gboard.
We've tried many hacks but with no success. Has anyone figured that out?

@ccoenen

This comment has been minimized.

Copy link

commented May 19, 2019

We experience a similar error in CodiMD in Firefox on android (see link above). We also came to the conclusion that some keyboards work while others don't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.