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, whic

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"

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

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

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 returnInFiel

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

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

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-live

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.

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

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.

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 > :

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

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

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?

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

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 sel

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 Ja

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 - Seba

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 somethin

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. A

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,

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 Brahmanat

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 whe

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:

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 c