Page 1 of 1

Physical Bluetooth Keyboard

Posted: Wed Jun 29, 2022 11:19 am
by MrFollies
I'm trying to control my livecode app via a bluetooth keyboard.
It works fine for the native widgets in the app (for instance a text input popup) but the rawKeyUp and keyUp (and down) events do not fire...

It does work in the IDE just fine... But not on the simulator and not on a physical iPad.

Is this even possible?

Re: Physical Bluetooth Keyboard

Posted: Wed Jun 29, 2022 5:50 pm
by stam
according to the documentation, rawKeyUp is compatible with mobile, so i assume it should be possible...

i presume even simple code like

Code: Select all

on rawKeyUp pKey
   answer pKey
end rawKeyUp 
doesn't work for you?

Re: Physical Bluetooth Keyboard

Posted: Wed Jun 29, 2022 11:40 pm
by MrFollies
No,..

This code doesn't do anything.

Code: Select all

on rawKeyUp pKeyName
   put "Key " & pKeyName & " released." into field fldTest
end rawKeyUp
It works fine in the IDE but not on the sim or physical device.

Edit: I have found if you focus on the field (if it's editable) then it appears to work in the sim. So I suspect the messages are sent when the iPad keyboard is "active" (but not displayed on the screen - since there is a bluetooth keyboard attached.).... I wonder if I can activate the keyboard somehow...

Re: Physical Bluetooth Keyboard

Posted: Thu Jul 07, 2022 8:26 pm
by MrFollies
For what it's worth...
Bug report submitted.

I'm not that hopeful of a fix....

https://quality.livecode.com/show_bug.cgi?id=23783