keymapperorg / KeyMapper

An Android app that change what the buttons do on your devices!
http://docs.keymapper.club
GNU General Public License v3.0
1.25k stars 164 forks source link

Random key repeats when holding down a remapped modifier key and typing at normal speed. #932

Open gtusr opened 2 years ago

gtusr commented 2 years ago

Developer TODO (don't remove)

Discord message link/email recipient

Describe the bug On the latest model of Apple Wireless keyboard, I remapped Alt Right (trigger) to Action (Input KEYCODE_CTRL_RIGHT) Hold Down.

It works, except that when I hold down Alt Right and press say the left arrow key, the cursor sometimes skips two words instead of just one word to the left.

The double word skip happens randomly when typing at normal speed.

If I wait at least one second between left arrow key presses, the random double word skips do not happen.

When using the native control key on the Apple Wireless keyboard in the same Android app (for a fair test) the cursor consistently skips only one word at a time to the left regardless of my typing speed.

The bug still occurs when connecting the keyboard to the Android device through the USB port, so I am fairly certain at this point that the problem lies in how KeyMapper implements remapping a modifier key and is not an artifact of the bluetooth connection.

To Reproduce

See above.

Expected behavior

Remapping a modifier key to another modifier key should be indistinguishable from using the native modifier key. In particular, there should be no phantom second key input events such as the one described above when typing at a normal pace.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

sds100 commented 2 years ago

Hi, if you install the 2.4.0 beta 1 in github releases does this still happen?