question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Backspacing across lines on Android is broken

See original GitHub issue

Specifically, 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:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ZhennanWucommented, Dec 25, 2018

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?

0reactions
edemainecommented, Apr 20, 2017

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found