termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
36.31k stars 3.81k forks source link

[Bug]: sometimes backspace deletes many characters #3449

Open amaramth opened 1 year ago

amaramth commented 1 year ago

Problem description

Sometimes backspace deletes dozens or hundreds of characters at once. Sometimes it appears to specifically delete up to a newline, but this may be coincidence. Like the other input bugs it is momentarily resolved by switching to another app, typing, and going back to termux.

Observed using a hardware keyboard with "soft keyboard only if no hardward keyboard" enabled.

Steps to reproduce the behavior.

Not known. Occurs only after switching apps.

What is the expected behavior?

Backspace works normally.

System information

mika-one commented 1 year ago

i have the same issue

keyboard: swiftkey

amaramth commented 1 year ago

i notice swiftkey has a "quick delete" option, where you swipe a distance starting on the delete key and it deletes proportional to the distance swiped. although this bug still occurs with that option turned off, maybe that is a hint as to how the input is getting handled such that a large number of deletes are generated at once

keyiflerolsun commented 8 months ago

CTRL + U

fix.

alimertcetin commented 6 months ago

Ctrl+U solved it when it occurred for the first time and it didn't work for later occurrences unfortunately. I'm also using SwiftKey. In order to fix, I'm exiting from all sessions and killing the Termux. And repeat this process until it fixed.

Update : Closing the SwiftKey and opening it in another application then coming back to Termux fixes the issue. No need to kill Termux.