I feel like a newbie again after 10 years away from LC...lol
I have a field that has the focus. When I click on some button, I want to close the field (remove the focus). I am having a hard time figuring out how to do this other than manually clicking into another field. None of my experiments have worked and a search here did not turn up anything. I must be missing something so basic that it is too obvious to be mentioned.
Redirecting focus away from a field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Redirecting focus away from a field
In the button's script, either in mouseDown or up, wouldn't
work? Or
Code: Select all
focus on nothing
Code: Select all
focus on {control}
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Redirecting focus away from a field
in the button's script add the line
Code: Select all
select empty
shiftLock happens
-
- Livecode Opensource Backer
- Posts: 15
- Joined: Tue Apr 11, 2006 12:07 am
- Location: Weaverville, NC
Re: Redirecting focus away from a field
Thank you. There you go, see I am a newbie all over again. I could not find that focus on command when I looked before (I can find it easy now). My eyes must be getting old...bogs wrote: ↑Fri Mar 01, 2019 10:01 pmIn the button's script, either in mouseDown or up, wouldn'tCode: Select all
focus on nothing
Re: Redirecting focus away from a field
Heh, I feel like that just about every day, believe me your more than welcome any time 2 of my brain cells fire to the beneficial side