Unexpected-Keyboard icon indicating copy to clipboard operation
Unexpected-Keyboard copied to clipboard

Pressing `Ctrl` + key simultanously does not work anymore

Open doak opened this issue 1 year ago • 12 comments

This worked for sure, but after reinstalling on a new phone this is broken for Ctrl but not for other modifiers like Alt or Shift. Surprisingly it behaves the same when using an outdated debug build which is still installed. This was definitely not the case when I had installed it those days. I've reset data and reinstalled – no change. Hence it looks like the SW of the new device breaks something. Any ideas?

Expected behaviour: Pressing and holding Ctrl while pressing e.g. w quickly afterwards sends Ctrl+w.

Actual behaviour: Pressing and holding Ctrl while pressing e.g. w sends sole w. (It works however if Ctrl is holded for some time.)

Previous phone:

  • Fairphone 4
  • Latest CalyxOS

Current phone:

  • Fairphone 5
  • Latest CalyxOS

I haven't checked out yet if there was an update of the OS within the last days …

doak avatar May 01 '24 18:05 doak

I haven't checked out yet if there was an update of the OS within the last days …

This was not the case. There was an (stable) update yesterday, but I've experienced the issue already before. I hardly can imagine that such behaviour is caused by slightly different SW for FP4 and FP5, though.

Hence, any input is highly appreciated.

doak avatar May 01 '24 19:05 doak

In what application do you observe this ? There has been recent changes to related code but I can't reproduce the problem (ec8e78d, dc3a303)

Julow avatar May 02 '24 10:05 Julow

In every single applications. Tested with Chromium, Conversations, Signal, Orgzly and Kiss. Im pretty sure it is related to the device, but cannot imagine how.

I've just downloaded the debug build for #626 and will try that one.

doak avatar May 02 '24 19:05 doak

Testing with default settings for #626: It happens not always but sometimes. Strange. Some timing issue …

doak avatar May 02 '24 19:05 doak

Oh shit. It seems somehow related with the size of the key(s). Somehow the smaller the key, the higher "I" don't hit it. But only if I press the second key very quick after Ctrl. I don't observe this if I press Ctrl alone.

But only if I press the second key very quick after Ctrl.

I should probably point out that I use two distinct fingers (i.e. both thumbs) for this.

I've replaced the Shift with an additional Ctrl. This one works as expected. I've swapped Shift and Ctrl in my custom layout – now Shift has the issue. Hence it seems related to this specific position.

doak avatar May 02 '24 19:05 doak

I've added an additional minimal width key before Ctrl – no change. I've increased the bottom margin to maximum – it work's. ⇒ Perhaps the OS interferes with dual touch if the first is near the (bottom left) corner. Is that plausible?

doak avatar May 02 '24 19:05 doak

Another observations: I've enabled debug options for touches. Even pressing only Ctrl looks different than for z or Shift. Please have a look at the attached videos. (I had pressed Ctrl+h all the time when only h is recognised.)

https://github.com/Julow/Unexpected-Keyboard/assets/2485924/caad5954-3f73-4350-a334-9f869941bff4

https://github.com/Julow/Unexpected-Keyboard/assets/2485924/0676229d-15b7-400d-8b4c-9e2d4dd80f14

doak avatar May 02 '24 20:05 doak

Could the back to home gesture interfere with the keyboard ? This seems consistent with the fact that bottom margin helps. The keyboard already has to opt-out of the back gestures on both sides of the screen but as explained here it can't opt-out of the home gesture. Could you try this debug build ? (code is here)

Julow avatar May 02 '24 21:05 Julow

Unfortunately no improvement, it looks like the same. I've also disabled gesture navigation at all.

https://github.com/Julow/Unexpected-Keyboard/assets/2485924/7464b86c-54a2-4ce2-8a45-74440b748d49

The same is at the bottom right corner (Enter), but neither top left nor right. At least according to debug pointer locations.

doak avatar May 02 '24 22:05 doak

The same regions "look different" (i.e. the same like for Unexpected Keyboard) in another app (Orgzly) without the keyboard being displayed. You still can't reproduce it, @Julow, right?

~In Chromium the displayed debug pointer locations are "correct"/like expected.~ No, it's the same.

doak avatar May 02 '24 22:05 doak

If you can't reproduce with another device, I am pretty sure this is related to Fairphone 5 or perhaps CalyxOS. Thanks for your support, @Julow!

doak avatar May 02 '24 23:05 doak

I've created a ticket for CalyxOS as well: https://gitlab.com/CalyxOS/calyxos/-/issues/2338

doak avatar May 08 '24 16:05 doak