这是indexloc提供的服务,不要输入任何密码
Skip to content

Autorepeat gets stuck when pressing two arrows or arrow+DEL/BKSP at the same time on extra keys bar #2156

@rsola

Description

@rsola

Hi. I have been using Termux for a long time and I find it very useful, but a few annoying issues surface from time to time. Some of them are easy to reproduce in order to avoid as much as possible the circumstances which trigger them. Some other issues are harder to track down.

Problem description

Suppose you have the default extra keys bar with the four arrow keys, or you customized it via termux.properties. Arrows, DEL and BKSP have autorepeat behavior, so they are sent continuously as long as you hold them. When two of these keys are tapped at the same time, autorepeat gets stuck.

Steps to reproduce

To make the problem more obvious, open a full screen editor with some text loaded. Then, tap (no need to hold or keep tapping) any two arrows or an arrow and DEL or BKSP at the same time on the extra keys bar. It may also work with DEL and BKSP if you have included them both on your extra keys settings.

For example, you are editing a file. A few consecutive lines have a comment character at the beginning and you want to remove it from all these lines (suppose your editor doesn't have a macro feature). Then, you repeatedly tap DEL and DOWN in rapid succession, which will trigger this issue. Cursor moves like crazy, history lines are recalled or characters are being deleted at great speed. There is just a little you can do to stop this madness. Ctrl and Alt extra keys cannot be used because they get cancelled whenever a key is sent to the terminal.

Workaround: long tap on screen so selection handles and the copy/paste/more menu appear. Then, autorepeat stops. However, a ghost handle or menu could remain on screen when dismissed.

Expected behavior

Autorepeat mode must not get stuck, i.e., maybe simultaneous key presses with autorepeat should be processed serially.

Additional information

  • Termux application version: 0.114
  • Android OS version: 8.1
  • Device model: Samsung SM-J710F (Galaxy J7 from 2016)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions