how to dismiss the keyboard

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Locked
garyth123
Posts: 88
Joined: Sat Apr 27, 2013 11:14 am
Location: Edinburgh, Scotland
Contact:

how to dismiss the keyboard

Post by garyth123 » Thu Aug 22, 2013 1:05 pm

Both on the simulator and on my iPhone when I enter text into a field (say to enter a logonid and a password) and then click a button expecting an action to result the keyboard remains visible. Thus I can't see the message I expect to be returned and my nav btns also are overlaid by the keyboard, but I think the logon succeeds. I have searched on the forums re how to dismiss the keyboard, and see that others have had this issue but none of the suggested solutions have worked for me.

LC 6.1.1 rc 2
Xcode 4.6
mobGui 0.29

Can anybody help with this?

Thanks in advance.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: how to dismiss the keyboard

Post by Dixie » Thu Aug 22, 2013 2:05 pm

Are you using LC text fields or native UI TextView ?... if LC fields then use

Code: Select all

focus on nothing
say in your button script, on in a mouseDown handler in the card script... if you are using native fields then the keyboard will go away when you click outside of the 'field', as it were...

Locked

Return to “Summer School 2013”