Re: How to dismiss keyboard on mobile

2018-05-15 Thread Sannyasin Brahmanathaswami via use-livecode
I found a way!

# Set search string field, the 

on returnKey
   delete char -1 of me
   select after word -1 of me # but this does work on android, cursor goes the 
head of the when hitting return 
end returnKey

# the Search Bottom:

on mouseup
   focus on the mouseControl 
# above key line, which dismissed the keyboard 
# and allows it come up again if the user clicks back in the search string
   put the shortName of me into pTarget
   executeSearch pTarget
end mouseup

# and, just to be sure, executeSearch button.

put (line 1 of tSearchString) into tSearchString

now I never get a CR in search.  keyboard behaves expected! Yay!

Also, Android is NOT the backKey engine when the keyboard is up..

I have this in a lib/back script, will fire any time I used the backKey, but 
not the keyboard is up.

the whole business about check the effective working screenrect.  the handler 
never seen it!

on backkey # need for android
answer "got it" with "ok"
   put the effective working screenrect into tScreen
   if (item 4 of tScreen-item 2 of tScreen) < 650 then
  # assume keyboard if up
  pass backKey
   else 
  if the short name of this stack is "journal" then
 send mouseup to widget "go-back"
  else
 send mouseup to widget "go-home-portal"
  end if
   end if
end backkey






___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-15 Thread Sannyasin Brahmanathaswami via use-livecode
Jacque… that backkey does work… (hehe) my handler 

on backkey # need for android
   put the effective working screenrect into tScreen
   if (item 4 of tScreen-item 2 of tScreen) < 650 then
  # assume keyboard if up
  pass backKey
   else 
  if the short name of this stack is "journal" then
 send mouseup to widget "go-back"
  else
 send mouseup to widget "go-home-portal"
  end if
   end if
end backkey

was perfect.. I just to use to hitting the key.

what does work in: 

on returnInField
   focus on nothing
   send "backKey" to me in 100 milliseconds
end returninfield

a) Android still allows me to put a CR.. this breaks the search
b) Send backkey from message path does nothing.

So, now I need to:

a) NOT have to CR be entered in the field and
b) have a way to prevent hitting the search button but with keyboard up,

Hmm seems like a bug to me. 








On 5/11/18, 11:19 AM, "use-livecode on behalf of J. Landman Gay via 
use-livecode"  wrote:

Having tested this, I see it is the mobile equivalent of returnInField 
and has nothing to do with the loss of focus. The focus remains on the 
field.

The dictionary is misleading and probably shouldn't mention focus at all 
-- which it does three times

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: How to dismiss keyboard on mobile

2018-05-11 Thread J. Landman Gay via use-livecode
Having tested this, I see it is the mobile equivalent of returnInField 
and has nothing to do with the loss of focus. The focus remains on the 
field.


The dictionary is misleading and probably shouldn't mention focus at all 
-- which it does three times.


On 5/11/18 12:42 AM, J. Landman Gay via use-livecode wrote:

But the ambiguous part is the dictionary reference to "the return key is 
pressed and focus is removed" which either means the engine removes the 
focus, or the message is really the equivalent of returnKey, which only 
fires when no field has focus.



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread J. Landman Gay via use-livecode
Just to clarify: Your sample handler specifically removed focus, so I'm 
assuming the engine doesn't do that. It sounds like inputReturnKey is the 
mobile equivalent of the standard returnInField message, but for native fields.


But the ambiguous part is the dictionary reference to "the return key is 
pressed and focus is removed" which either means the engine removes the 
focus, or the message is really the equivalent of returnKey, which only 
fires when no field has focus.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On May 10, 2018 9:11:39 PM Mike Kerner via use-livecode 
 wrote:



The sequence is
return key is pressed
focus is removed
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread Sannyasin Brahmanathaswami via use-livecode
No go on my Pixel

Hit return, nothing happens. 

with is working as expected iOS

on inputReturnKey
   focus on nothing
end inputReturnKey

I tackle it tomorrow

BR

Are you using a native mobile field? If not then...

on returnInField
focus on nothing
exit returnInField
end returnInField

HTH,

Terry...



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread Terry Judd via use-livecode
Are you using a native mobile field? If not then...

on returnInField
focus on nothing
exit returnInField
end returnInField

HTH,

Terry...

On 11/05/2018 12:41 pm, "use-livecode on behalf of Sannyasin Brahmanathaswami 
via use-livecode"  wrote:

Just tried in minutes ago

didn't work.

in the field

on inputReturnKey
 focus on nothing
end inputReturnKey

did not work.

Plus there is  whole card "raised" on so that bottom is the top of keyboard

Mike Kerner wrote:

The sequence is
return key is pressed
focus is removed

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: How to dismiss keyboard on mobile

2018-05-10 Thread Sannyasin Brahmanathaswami via use-livecode
Just tried in minutes ago

didn't work.

in the field

on inputReturnKey
 focus on nothing
end inputReturnKey

did not work.

Plus there is  whole card "raised" on so that bottom is the top of keyboard

Mike Kerner wrote:

The sequence is
return key is pressed
focus is removed

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread Mike Kerner via use-livecode
The sequence is
return key is pressed
focus is removed
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread J. Landman Gay via use-livecode

I'd forgotten about this too. The description says:

"Handle the inputReturnKey message if you want to make changes to the 
interface or perform an action when the return key is pressed and focus is 
removed from an iosTextInput, androidTextInput or androidMultiline control."


This is ambiguous. Does it mean "the return key is pressed and no field 
currently has focus"? If so, how does it differ from the returnKey message? 
Or does returnKey not work with native fields?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On May 10, 2018 8:30:36 PM Sannyasin Brahmanathaswami via use-livecode 
 wrote:



(banging my head on the wall)
"You have read the dictionary! You have to read the dictionary!" ha!

Little did I know that:
--
Mike Kerner wrote:

   I personally use
   *on* inputReturnKey
   *focus* *on* nothing
   *end* inputReturnKey


BR



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread Sannyasin Brahmanathaswami via use-livecode
(banging my head on the wall) 
"You have read the dictionary! You have to read the dictionary!" ha!

Little did I know that:
--
Mike Kerner wrote:

I personally use   
*on* inputReturnKey
*focus* *on* nothing 
*end* inputReturnKey


BR



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread Mike Kerner via use-livecode
I personally use

*on* inputReturnKey

*focus* *on* nothing

*end* inputReturnKey


On Thu, May 10, 2018 at 6:02 PM Tore Nilsen via use-livecode <
use-livecode@lists.runrev.com> wrote:

> You could also try:
>
> on returnInField
>
> focus on nothing
>
> end returnInField
>
>
> in the field script. That seems to do the trick on desktop at least,
> whereas on returnKey does not when it is placed in the field script.
>
>
> Tore Nilsen
>
> > 10. mai 2018 kl. 23:44 skrev J. Landman Gay via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > On 5/10/18 4:21 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
> >> Really… putting this  in the field should dismiss the keyboard
> >> on returnKey
> >>closeField
> >>exitField
> >> end returnKey
> >
> > These are engine messages, not commands. They are sent when the user
> does something, and it's up to the script to do what is required. It's the
> same as "mouseUp" -- it doesn't do anything, it simply informs you that the
> mouse was clicked.
> >
> > You could try this instead:
> >
> > on returnKey
> >  focus on nothing
> > end returnKey
> >
> > That's probably better than my other suggestion.
> >
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com
> > HyperActive Software   | http://www.hyperactivesw.com
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: How to dismiss keyboard on mobile

2018-05-10 Thread Tore Nilsen via use-livecode
You could also try:

on returnInField

focus on nothing

end returnInField


in the field script. That seems to do the trick on desktop at least, whereas on 
returnKey does not when it is placed in the field script.


Tore Nilsen

> 10. mai 2018 kl. 23:44 skrev J. Landman Gay via use-livecode 
> :
> 
> On 5/10/18 4:21 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
>> Really… putting this  in the field should dismiss the keyboard
>> on returnKey
>>closeField
>>exitField
>> end returnKey
> 
> These are engine messages, not commands. They are sent when the user does 
> something, and it's up to the script to do what is required. It's the same as 
> "mouseUp" -- it doesn't do anything, it simply informs you that the mouse was 
> clicked.
> 
> You could try this instead:
> 
> on returnKey
>  focus on nothing
> end returnKey
> 
> That's probably better than my other suggestion.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: How to dismiss keyboard on mobile

2018-05-10 Thread J. Landman Gay via use-livecode

On 5/10/18 4:21 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

Really… putting this  in the field should dismiss the keyboard

on returnKey
closeField
exitField
end returnKey


These are engine messages, not commands. They are sent when the user 
does something, and it's up to the script to do what is required. It's 
the same as "mouseUp" -- it doesn't do anything, it simply informs you 
that the mouse was clicked.


You could try this instead:

on returnKey
  focus on nothing
end returnKey

That's probably better than my other suggestion.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: How to dismiss keyboard on mobile

2018-05-10 Thread J. Landman Gay via use-livecode

On 5/10/18 4:30 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

  is they way to use to this? in group script?

  Jacqueline wrote:

 on selectionChanged

focus on nothing
 end selectionChanged


It goes into the field where the selections are made. When the user is 
done selecting text, the focus is removed and the keyboard should go 
away. But it's a little sensitive and may not be what you want. Also, I 
didn't actually try it on mobile, so this is still theoretical. It works 
on desktop.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread Sannyasin Brahmanathaswami via use-livecode
You can't put that into your other radio buttons on the Search UI panel.

You can't put it into the search button (you want the next take makes choices 
before search)

It goes to: create a "Done" control, like in iOS, for the keyboard.

how to get the bottom coordinate of the area above keyboard?  That where we 
want that control

OR

 is they way to use to this? in group script?

 Jacqueline wrote:
   
on selectionChanged
   focus on nothing
end selectionChanged

There's a down side, the keyboard will pop up and down more often than 
you may want. It's not a perfect solution but in some cases it might do.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread Sannyasin Brahmanathaswami via use-livecode
Well, all good, but still, IMHO, a hack

go the 

https://quality.livecode.com/show_bug.cgi?id=20456

Maybe should make a separate report.

Really… putting this  in the field should dismiss the keyboard 

on returnKey
   closeField
   exitField  
end returnKey

They enter text, hit return, keyboard  goes away. 

It is not that simple?

BR




On 5/10/18 12:57 PM, J. Landman Gay via use-livecode wrote:
> Well, my last post just broke my own rule. But it wasn't a great 
> suggestion so basically the rule still holds.

I don't see that post, so here it is again in case it got lost in the ether:

on selectionChanged
   focus on nothing
end selectionChanged

There's a down side, the keyboard will pop up and down more often than 
you may want. It's not a perfect solution but in some cases it might do.

-- 
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: How to dismiss keyboard on mobile

2018-05-10 Thread J. Landman Gay via use-livecode

On 5/10/18 12:57 PM, J. Landman Gay via use-livecode wrote:
Well, my last post just broke my own rule. But it wasn't a great 
suggestion so basically the rule still holds.


I don't see that post, so here it is again in case it got lost in the ether:

on selectionChanged
  focus on nothing
end selectionChanged

There's a down side, the keyboard will pop up and down more often than 
you may want. It's not a perfect solution but in some cases it might do.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread J. Landman Gay via use-livecode
Well, my last post just broke my own rule. But it wasn't a great suggestion 
so basically the rule still holds.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On May 10, 2018 12:13:34 PM Bob Sneidar via use-livecode 
 wrote:


Thanks to Jacque who explained this to me some years back. (I won't say how 
many years out of respect...) ;-)


Bob S


On May 10, 2018, at 10:01 , Stephen Barncard via use-livecode 
 wrote:


I've been struggling with this dilemma for years. thanks

sqb

--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org

On Thu, May 10, 2018 at 8:29 AM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:


It's not something you would put in a field. Focus on nothing is something
you send to lose focus on any object that currently has the focuw.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread Bob Sneidar via use-livecode
Thanks to Jacque who explained this to me some years back. (I won't say how 
many years out of respect...) ;-)

Bob S


> On May 10, 2018, at 10:01 , Stephen Barncard via use-livecode 
>  wrote:
> 
> I've been struggling with this dilemma for years. thanks
> 
> sqb
> 
> --
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.org
> 
> On Thu, May 10, 2018 at 8:29 AM, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> It's not something you would put in a field. Focus on nothing is something
>> you send to lose focus on any object that currently has the focuw.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread Stephen Barncard via use-livecode
I've been struggling with this dilemma for years. thanks

sqb

--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org

On Thu, May 10, 2018 at 8:29 AM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> It's not something you would put in a field. Focus on nothing is something
> you send to lose focus on any object that currently has the focuw.
>
> For instance, you have a field which calls a validation function upon
> closeField. You have a button that saves the information in the field
> somewhere. At least on MacOS, clicking the button does NOT cause the field
> to lose focus, because on MacOS a button cannot HAVE the focus. Hence your
> validation script will never trigger, and you might save bad data.
>
> So in the mouseUp handler of the button, the first line could be focus on
> nothing. This will trigger the closeField message of the field and execute
> your validation script.
>
> Bob S
>
>
> > On May 10, 2018, at 07:28 , Sannyasin Brahmanathaswami via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > on returnInField
> >   focus on nothing
> > end returninfield
> >
> > # when I put that into field itself: does nothing:
> > # on android I get a carriage return in the field on hitting returnkey
> >
> > maybe it has to do with what Jacqueline said "
> >
> > "These are just messages that the engine sends when the focus changes,
> > they don't control the field themselves. As mentioned, "focus on
> > nothing" is the command that does the actual work."
> >
> > But I would rather they don't have to click another control, other than
> the return key while inside the field itself
> >
> > BR
> >
> >
> >
> >That is what I do whenever I need a closeField or exitField to
> trigger on a currently entered field before running off and doing things.
> focus on nothing is what you want.
> >
> >Bob S
> >
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread Bob Sneidar via use-livecode
It's not something you would put in a field. Focus on nothing is something you 
send to lose focus on any object that currently has the focuw. 

For instance, you have a field which calls a validation function upon 
closeField. You have a button that saves the information in the field 
somewhere. At least on MacOS, clicking the button does NOT cause the field to 
lose focus, because on MacOS a button cannot HAVE the focus. Hence your 
validation script will never trigger, and you might save bad data. 

So in the mouseUp handler of the button, the first line could be focus on 
nothing. This will trigger the closeField message of the field and execute your 
validation script. 

Bob S
 

> On May 10, 2018, at 07:28 , Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> on returnInField
>   focus on nothing
> end returninfield
> 
> # when I put that into field itself: does nothing: 
> # on android I get a carriage return in the field on hitting returnkey
> 
> maybe it has to do with what Jacqueline said "
> 
> "These are just messages that the engine sends when the focus changes,
> they don't control the field themselves. As mentioned, "focus on
> nothing" is the command that does the actual work."
> 
> But I would rather they don't have to click another control, other than the 
> return key while inside the field itself
> 
> BR
> 
> 
> 
>That is what I do whenever I need a closeField or exitField to trigger on 
> a currently entered field before running off and doing things. focus on 
> nothing is what you want. 
> 
>Bob S
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-10 Thread Sannyasin Brahmanathaswami via use-livecode
on returnInField
   focus on nothing
end returninfield

# when I put that into field itself: does nothing: 
# on android I get a carriage return in the field on hitting returnkey

maybe it has to do with what Jacqueline said "

"These are just messages that the engine sends when the focus changes,
they don't control the field themselves. As mentioned, "focus on
nothing" is the command that does the actual work."

But I would rather they don't have to click another control, other than the 
return key while inside the field itself

BR



That is what I do whenever I need a closeField or exitField to trigger on a 
currently entered field before running off and doing things. focus on nothing 
is what you want. 

Bob S



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-09 Thread Bob Sneidar via use-livecode
That is what I do whenever I need a closeField or exitField to trigger on a 
currently entered field before running off and doing things. focus on nothing 
is what you want. 

Bob S


> On May 9, 2018, at 14:28 , J. Landman Gay via use-livecode 
>  wrote:
> 
> On 5/9/18 2:21 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
>> Putting this in the field does not help.
>> on returnKey
>>closeField
>>exitField
>> end returnKey
>> # does nothing: one would expect the field to lose focus/keyboard goes away.
> 
> These are just messages that the engine sends when the focus changes, they 
> don't control the field themselves. As mentioned, "focus on nothing" is the 
> command that does the actual work.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-09 Thread J. Landman Gay via use-livecode

On 5/9/18 2:21 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

Putting this in the field does not help.

on returnKey
closeField
exitField
end returnKey

# does nothing: one would expect the field to lose focus/keyboard goes away.


These are just messages that the engine sends when the focus changes, 
they don't control the field themselves. As mentioned, "focus on 
nothing" is the command that does the actual work.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: How to dismiss keyboard on mobile

2018-05-09 Thread Ralph DiMola via use-livecode
Focus on nothing or send backKey to the engine on Android.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Sannyasin Brahmanathaswami via use-livecode
Sent: Wednesday, May 09, 2018 3:21 PM
To: How LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: How to dismiss keyboard on mobile

On mobile

I have a UI (for searching audio)

where:

1) user make a text selection (search box)
2) need to dismiss the keyboard (having made the text selection, which
remains)
3) so she can choose some other radio buttons: like "Title" or "Sub-title"
or "Genre"  (this is a audio/music search UI)

How to get rid of the keyboard? And let the user can keep going in the UI
while field keeps the data, until "submit" or clicks "search"

On iOS is see a control for keyboard search where word "Done" appears
above/right of the keyboard. You click it, the keyboard disappears

Can we hack that UI in Livecode? There must be some way to make the keyboard
disappear -- without triggering any other action.

Putting this in the field does not help.

on returnKey
   closeField
   exitField
end returnKey

# does nothing: one would expect the field to lose focus/keyboard goes away.


br
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to dismiss keyboard on mobile

2018-05-09 Thread Klaus major-k via use-livecode
Hi Swami,

> Am 09.05.2018 um 21:21 schrieb Sannyasin Brahmanathaswami via use-livecode 
> :
> 
> On mobile
> 
> I have a UI (for searching audio)
> where:
> 1) user make a text selection (search box)
> 2) need to dismiss the keyboard (having made the text selection, which 
> remains)
> 3) so she can choose some other radio buttons: like "Title" or "Sub-title" or 
> "Genre"  (this is a audio/music search UI)
> How to get rid of the keyboard? And let the user can keep going in the UI 
> while field keeps the data, until "submit" or clicks "search"
> On iOS is see a control for keyboard search where word "Done" appears 
> above/right of the keyboard. You click it, the keyboard disappears
> Can we hack that UI in Livecode? There must be some way to make the keyboard 
> disappear -- without triggering any other action.
> Putting this in the field does not help.
> on returnKey
>   closeField
>   exitField
> end returnKey
> # does nothing: one would expect the field to lose focus/keyboard goes away.

usually:
...
focus on nothing
...
does the trick.

> br

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


How to dismiss keyboard on mobile

2018-05-09 Thread Sannyasin Brahmanathaswami via use-livecode
On mobile

I have a UI (for searching audio)

where:

1) user make a text selection (search box)
2) need to dismiss the keyboard (having made the text selection, which remains)
3) so she can choose some other radio buttons: like "Title" or "Sub-title" or 
"Genre"  (this is a audio/music search UI)

How to get rid of the keyboard? And let the user can keep going in the UI while 
field keeps the data, until "submit" or clicks "search"

On iOS is see a control for keyboard search where word "Done" appears 
above/right of the keyboard. You click it, the keyboard disappears

Can we hack that UI in Livecode? There must be some way to make the keyboard 
disappear -- without triggering any other action.

Putting this in the field does not help.

on returnKey
   closeField
   exitField
end returnKey

# does nothing: one would expect the field to lose focus/keyboard goes away.


br
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Dismiss Keyboard on Mobile

2017-09-30 Thread Sannyasin Brahmanathaswami via use-livecode
Hmm. that nice "DONE" option is only for iOS

iPhoneSetKeyboardReturnKey



J. Landman Gay wrote:

See " mobilesetkeyboardtype".

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Dismiss Keyboard on Mobile

2017-09-30 Thread J. Landman Gay via use-livecode

See " mobilesetkeyboardtype".



On September 30, 2017 12:48:31 PM Sannyasin Brahmanathaswami via 
use-livecode  wrote:


And this app has a nice keyboard with the word "DONE" in blue, in the place 
where the return key is (at least in iOS)  I looked all through the 
dictionary and online lessons… can't find how to invoke that one.. though 
not mission critical, would be nice.  That's probably the 
mobileCreateControl Input.. with some settting,


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Dismiss Keyboard on Mobile

2017-09-30 Thread prothero--- via use-livecode
I wonder if simply setting the "editable" property of the field, in code, would 
close the keyboard.
Bill P

William Prothero
http://es.earthednet.org

> On Sep 30, 2017, at 10:46 AM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> Yes peruising the dictionary in the little cool app made by someone in Asia… 
> LC dictionary.. and looking through all the mobileControlCreate input options 
> and saw that focus was the key.
> 
> And this app has a nice keyboard with the word "DONE" in blue, in the place 
> where the return key is (at least in iOS)  I looked all through the 
> dictionary and online lessons… can't find how to invoke that one.. though not 
> mission critical, would be nice.  That's probably the mobileCreateControl 
> Input.. with some settting,
> 
> J. Landman Gay wrote:
> 
>Try "focus on nothing" instead of selecting empty.
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Dismiss Keyboard on Mobile

2017-09-30 Thread Sannyasin Brahmanathaswami via use-livecode
Yes peruising the dictionary in the little cool app made by someone in Asia… LC 
dictionary.. and looking through all the mobileControlCreate input options and 
saw that focus was the key.

And this app has a nice keyboard with the word "DONE" in blue, in the place 
where the return key is (at least in iOS)  I looked all through the dictionary 
and online lessons… can't find how to invoke that one.. though not mission 
critical, would be nice.  That's probably the mobileCreateControl Input.. with 
some settting,

J. Landman Gay wrote:

Try "focus on nothing" instead of selecting empty.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Dismiss Keyboard on Mobile

2017-09-30 Thread J. Landman Gay via use-livecode

Try "focus on nothing" instead of selecting empty.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On September 30, 2017 12:20:26 AM Sannyasin Brahmanathaswami via 
use-livecode  wrote:



I have a drop down search panel with radio buttons and a search field.

the search string field is grouped with the search icon (magnify glass icon)

this small group of two objects has  behavior attached. When the user hits 
the search icon, the string and readio buttons all form and run a dbase query.


Works fine on desktop

But on mobile the keyboard remains "stuck" and I have no way to dismiss it.
How do you give the user the option to be "done" with text entry

I have "select empty" in mouseup of the search behavior.  I thought this 
would get the cursor out of the field and cause the keyboard to go away and 
the mouseup Handler would proceed… but not go… I don't think the touch 
event even gets through as long as the cursor is still in the field and the 
keyboard is up…





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Dismiss Keyboard on Mobile

2017-09-29 Thread Sannyasin Brahmanathaswami via use-livecode
I have a drop down search panel with radio buttons and a search field.

the search string field is grouped with the search icon (magnify glass icon)

this small group of two objects has  behavior attached. When the user hits the 
search icon, the string and readio buttons all form and run a dbase query.

Works fine on desktop

But on mobile the keyboard remains "stuck" and I have no way to dismiss it.
How do you give the user the option to be "done" with text entry

I have "select empty" in mouseup of the search behavior.  I thought this would 
get the cursor out of the field and cause the keyboard to go away and the 
mouseup Handler would proceed… but not go… I don't think the touch event even 
gets through as long as the cursor is still in the field and the keyboard is up…




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode