Delphi: VirtualKeyboard events not reliably triggered with Android Gesture Navigation - Stack Overflow

I’m encountering an issue in a Delphi app when using Android's Gesture Navigation feature. Specifi

I’m encountering an issue in a Delphi app when using Android's Gesture Navigation feature. Specifically, the VirtualKeyboard hide and show events are only triggered every second attempt when performing a hardware back (HwBack) gesture. This problem does not occur when using the 3-button navigation system.

Here’s a video explaining Android Gesture Navigation for reference:

Reproduction steps:

  • Create a TForm in Delphi.
  • Add a component (e.g., an TEdit) that triggers the VirtualKeyboard.
  • Use Android Gesture Navigation and attempt to hide the keyboard using the HwBack gesture.
  • Observe that the VirtualKeyboard hide event is triggered only on every second attempt.

Additional context:

  • When using the 3-button navigation system, the events are triggered reliably.
  • Related issue reports: RSP-2040 and RSP-2047 (submitted to Embarcadero).

Has anyone encountered similar issues, and if so, is there a known workaround or fix? The issue occurs in Delphi version 12.2 with the latest patches applied. However, I believe this behavior might be present in earlier versions as well—likely those supporting Android 10, which introduced Gesture Navigation support.

Edit: Some additional insights on this. There is a difference between using the back gesture (swiping from the left or right edge to the center) and using the small button below the keyboard to hide it. When using the small keyboard button, the behavior can be consistently reproduced.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745623505a4636664.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信