Is there a "dismiss keyboard" command for iOS?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Diane
Posts: 20
Joined: Wed Jun 01, 2011 10:02 pm

Is there a "dismiss keyboard" command for iOS?

Post by Diane » Mon Jun 13, 2011 7:21 pm

Hello, I'm not sure if this is the place to post this, but here goes. I have a very simple app, that has a text field in it. When I run it in the iOS simulator, if I clicked inside the field, the keyboard comes up, and when I click outside, the keyboard goes away. I then brought in a background image, and now the keyboard won't go away. If I delete the background, keyboard goes away again.
Is there maybe a "dismiss keyboard" command that I could use?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Is there a "dismiss keyboard" command for iOS?

Post by Mark » Mon Jun 13, 2011 10:31 pm

select empty
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

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

Re: Is there a "dismiss keyboard" command for iOS?

Post by Dixie » Mon Jun 13, 2011 10:33 pm

Hi...

Not knowing what you are really doing, but...

Code: Select all

on mouseDown
   focus on nothing
end mouseDown
if you put this in the script of your background image, the keyboard will go away...

hope it helps...

Dixie

Diane
Posts: 20
Joined: Wed Jun 01, 2011 10:02 pm

Re: Is there a "dismiss keyboard" command for iOS?

Post by Diane » Mon Jun 13, 2011 11:30 pm

yayy Dixie, just the ticket! :D

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”