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?
Physical Bluetooth Keyboard
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Physical Bluetooth Keyboard
according to the documentation, rawKeyUp is compatible with mobile, so i assume it should be possible...
i presume even simple code like
doesn't work for you?
i presume even simple code like
Code: Select all
on rawKeyUp pKey
answer pKey
end rawKeyUp
Re: Physical Bluetooth Keyboard
No,..
This code doesn't do anything.
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...
This code doesn't do anything.
Code: Select all
on rawKeyUp pKeyName
put "Key " & pKeyName & " released." into field fldTest
end rawKeyUp
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
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
Bug report submitted.
I'm not that hopeful of a fix....
https://quality.livecode.com/show_bug.cgi?id=23783