Page 1 of 1
keyDown doesn't work on mobile
Posted: Mon Mar 10, 2025 4:30 pm
by simon.schvartzman
Contrary to what it says in the manual, KeyDown doesn't work on mobile in Classic and I also learned it will not be prioritised on Crate, I think at least it should be taken out of the manual...
Re: keyDown doesn't work on mobile
Posted: Mon Mar 10, 2025 4:37 pm
by stam
KeyDown as written in question, or RawKeyDown as shown in image? Or both?
Re: keyDown doesn't work on mobile
Posted: Mon Mar 10, 2025 5:40 pm
by simon.schvartzman
both of them!!!
Re: keyDown doesn't work on mobile
Posted: Tue Mar 11, 2025 6:04 pm
by jacque
It's possible to to attach a physical keyboard to mobile devices,, and that may be the requirement for the keyDown message to be sent. LC relies on the OS to send keyboard messages and it's likely the device checks for one.
Re: keyDown doesn't work on mobile
Posted: Wed Mar 12, 2025 3:42 am
by scott_morrow
I encountered this a while back when testing on an iPad Pro 13inch 2024 (M4) and Magic Keyboard. While the app works on desktop (with a keyboard) and on mobile (with a custom screen number pad) the fancy Magic Keyboard (which appears to work flawlessly otherwise) in LiveCode, doesn't produce keyDown or rawKeyDown messages. It has been a a few months since I looked at this but Bug 23783 (Key events [keyUp/keyDown/rawKeyUp/rawKeyDown etc] do not work with card focus on iOS) might be the culprit. Though, if I remember correctly, I wasn't getting it to work even with a focused control.
Re: keyDown doesn't work on mobile
Posted: Wed Mar 12, 2025 11:49 am
by simon.schvartzman
@scott_morro, this is exactly where we are...LC has recognised the bug...