text field in modal allows no input

Maarten Koopmans maarten.koopmans at gmail.com
Sun Apr 17 01:45:50 EDT 2011


Thanks, I will test. The advantage of livecode being that you can
redesign your UI flow so fast, i came up witha flow without modals tha
people seems to like more (modals can be a bit intrusive). But I'll
test anyway.... See if this trick helps for future ference :-)

--Maarten

On Saturday, April 16, 2011, Mike Bonner <bonnmike at gmail.com> wrote:
> No longer have a mac, but I seem to remember this same thing happening in
> non-lc applications also, and intermittently in the lc dictionary(I think
> there were several threads about the dictionary annoyance here).  The fix
> being to click outside the field then refocus the field.
>
> As a workaround, if its fast enough maybe you can use click and click a
> blank spot on the card, then focus back on the field object. Or more simply,
> have an obscured button or field (put it behind something opaque) and then
>
> focus on field "mycheaterfield"
> wait 10 milliseconds
> focus on field "fieldIreallywantfocused"
>
> don't know if it will work, can't test, but its a thought.
>
> On Sat, Apr 16, 2011 at 11:23 AM, Maarten Koopmans <
> maarten.koopmans at gmail.com> wrote:
>
>> Mac bug. Same stack on windows work fine with text input on a modal in a
>> dragDrop. I'll see if I can file a bug.
>>
>> If you  know of a work around (except redesigning the UI.....), I'd be very
>> thankful.
>>
>> --Maarten
>>
>> On Sat, Apr 16, 2011 at 5:26 PM, Maarten Koopmans <
>> maarten.koopmans at gmail.com> wrote:
>>
>> > Hi
>> >
>> > I have a main stack that accepts a drag-drop for files like this on a
>> > hidden field the size of the card:
>> >
>> > *on* dragDrop
>> >
>> >    *if* the dragData["files"] is not empty *then*
>> >
>> >       *modal* stack  "AddMetaData"
>> >
>> >       addFiles(dragData["files"])
>> >
>> >    *end* *if*
>> >
>> >    *set* the dragAction to link
>> >
>> >    *pass* dragDrop
>> >
>> > *end* dragDrop
>> >
>> >
>> > The addFiles command just copies the files.
>> >
>> >
>> > AddMetaData is a substack with just one text field and an "OK" button,
>> >
>> >
>> > *on* mouseUp
>> >
>> >    *global* gNewTags
>> >
>> >    *put the text of field MetaData into gNewMetaData*
>> >
>> >    *close* this stack
>> >
>> > *end* mouseUp
>> >
>> >
>> > The problem: the text field has focus, but I can't type in it!
>> >
>> >
>> > I tried to mimick it with a simple mainstack/substack where the mainstack
>> > has a button"Go modal", and the moda stack is the same, and there.... it
>> > works. So I must be missings omething with te message path/drag
>> drop/.....
>> >
>> >
>> > Any clues? I have thought about a more wizard like behaviour, but nce I
>> > start hiding/closing stacks and using go to things are indeed editable,
>> but
>> > highly unpredictable.
>> >
>> >
>> > --Maarten
>> >
>> >
>> > ** Just to be the clear, my use case is quite simple:
>> > 1- user drags file on stack
>> > 2- user adds some mandatory info about the files
>> > 3- files get copied
>> >
>> > (2) is causing the problems, probably because I don't have my head
>> wrapped
>> > around LC completely (though I do feel more comfortable more and more)
>> >
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>




More information about the use-livecode mailing list