Physical Bluetooth Keyboard

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
MrFollies
Posts: 29
Joined: Tue Jul 15, 2014 8:30 am

Physical Bluetooth Keyboard

Post by MrFollies » Wed Jun 29, 2022 11:19 am

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?

stam
Posts: 1360
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Physical Bluetooth Keyboard

Post by stam » Wed Jun 29, 2022 5:50 pm

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?

MrFollies
Posts: 29
Joined: Tue Jul 15, 2014 8:30 am

Re: Physical Bluetooth Keyboard

Post by MrFollies » Wed Jun 29, 2022 11:40 pm

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...

MrFollies
Posts: 29
Joined: Tue Jul 15, 2014 8:30 am

Re: Physical Bluetooth Keyboard

Post by MrFollies » Thu Jul 07, 2022 8:26 pm

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

Post Reply

Return to “iOS Deployment”