Backspacing across lines on Android is broken
See original GitHub issueSpecifically, when there is a gutter, trying to backspace at the start of the line removes the virtual keyboard and does nothing.
The issue appears to be a mobile Chrome bug which, in this HTML (which is a simplification of what CodeMirror creates when there is a gutter)
<div contenteditable=true>
<pre>foo</pre>
<div contenteditable="false">(gutter)</div>
<pre>bar</pre>
</div>
if you put the cursor before ‘bar’ and press backspace, the document isn’t changed, but the selection is moved into the non-editable div
, and thus the virtual keyboard disappears.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Backspacing across lines on Android is broken #4637 - GitHub
Specifically, when there is a gutter, trying to backspace at the start of the line removes the virtual keyboard and does nothing.
Read more >Facebook jumps to top when pressing Backspace Key while ...
Facebook users say they are facing an issue where the page jumps or scrolls to the top when pressing the backspace key while...
Read more >LatinIME: fails to delete pre-existing characters ... - Issue Tracker
In the Android 4.4 branch of LatinIME, there is a regression in the backspace key handling that prevents users from deleting existing texts...
Read more >Diagnosing Native Crashes | Android Open Source Project
Crasher can crash in a large number of interesting ways based on the command line arguments you provide. Use crasher --help to see...
Read more >Cracked Glass vs LCD Repair
Selling cracked glass with good LCDs helps offset the cost of glass repairs, which in turn makes getting your glass fixed cheaper for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just here to confirm the state of this issue. As @edemaine has pointed out, if you delete across lines, then the keyboard will disappear and reopen.
Such behavior has been confirmed with Android P + Chrome 71.0.3578.99 (latest as of Dec/25/2018) + Gboard/Swiftkey
Gboard version: 7.8.7.224352916 Updated on Dec 10 2018 SwiftKey version: 7.1.9.24 Updated on Dec 5 2018
(Strangely enough, Hacker’s Keyboard works fine.)
The impact of this behavior: makes continuous backspacing across multiple lines impossible, because it always will be interrupted at every line break. After each interruption, you have to release and re-press the button, otherwise the closed-and-reopened keyboard won’t react anymore.
Is such behavior going to be fixed or a wontfix?
Hmm, I just tested again on the
codemirror.net
demos, and I concur: it seems to work fine now. Specifically, when backspacing at the beginning of a line, the keyboard disappears briefly, but comes back.There may have been a SwiftKey update recently that fixed this. Anyway, I think you can close the issue again. Sorry for the hassle!