@zed and
@DonManfred thank you for your replies.
I tested on
Xiaomi Redmi 5 Plus with Android 8.1 MIUI Global 11,
Xiaomi Redmi 10c with Android 11 MIUI Global 13 and it gives me the same error on both devices.
When I tested it on two older LG phones, everything worked fine. And it works perfectly fine on the emulator.
I tried adding this code you suggested
Private Sub cs_LongClick...
...but it had no effect, it seems that csBuilder does not have an event for LongClick...the application never enters that part of the code. It looks like users of other platforms have also faced the same error for Xiaomi devices
https://stackoverflow.com/questions...widget-editorselectionmodifiercursorcontrolle so I will continue to investigate the issue….