Keyboard issue.
Posted: Mon Feb 21, 2011 10:37 am
When I call the keyboard to be opened, it is automatically in caps lock mode. Is there any way to turn this off?
Questions and answers about the LiveCode platform.
https://forums.livecode.com/
Yes, and notice too that the shift key is not solid blue (which it would be for caps lock) but rather is outlined blue, which should then change after typing the first character. But it does stay locked. I notice that coming back into the field later...the keyboard behaves normally.dburdan wrote:Both. I have a screen with one text box. When the user clicks it, it opens the keyboard as usual. But the keyboard being opened, starts in all caps. I tried switching the keyboard type but that didn't work.
Code: Select all
on keyboardActivated
if the clearShift of field "My Field" is false then
focus on nothing
set the clearShift of field "My Field" to true
focus on field "My Field"
exit keyboardActivated
else
pass keyboardActivated
end if
end keyboardActivated
Thank you very much for your code!teacherguy wrote:OK here is my workaround for getting rid of the shift key being locked on the first appearance of the keyboard. I created a custom property for the field called clearShift, then I put this handler in the card script:
Code: Select all
on keyboardActivated if the clearShift of field "My Field" is false then focus on nothing set the clearShift of field "My Field" to true focus on field "My Field" exit keyboardActivated else pass keyboardActivated end if end keyboardActivated