Not sure if this is what you're seeing, but if you are using tab to enter
the next field, then using arrow keys to navigate up and down, it doesn't
work. (6.7.6) When you tab into a list field, the hilite remains, but there
is no selection in the field. IE no insertion point, so the arrow keys
don't work.

I've found that if you select the hilited line as you tab into the field it
solves this problem.

If this is the problem you are seeing, clicking a line in the recalcitrant
field should make the arrow keys start working, because the click selects a
line.

Another direction to solve it would be to catch the arrowkey message in the
field, and if there is a hilite, but no lines selected, select the hilited
line then pass arrowkey. If there are no lines selected, and no hilites,
select and hilite the first line.  If I understand correctly, the second
part should only be necessary if you have toggle hilites turned on.
(because otherwise when you tab into the field, a line is selected.)

I just noticed another interesting thing (Still in 6.7.6)

Selecting "click to toggle" in the inspector puts a checkmark into
mutli-line and non-contiguous (as it should?) but clicking away and coming
back to the object, only click to toggle is still selected.

Oh, and final note on this, if you have multiline non-contiguous selected
you'd have to account for that too.

Check the focused object when the arrow keys aren't working. If the correct
field is focused, check the selectedline to see if there is one. If not,
the arrow keys fail to work.

On Sun, Jul 19, 2015 at 7:07 AM, Peter M. Brigham <pmb...@gmail.com> wrote:

> I have a list field in one stack that isn't behaving properly. List fields
> are supposed to allow up and down arrowkeys to move the hilited line. From
> the dictionary: "If a field's listBehavior property is set to true, and the
> user clicks a line, the entire line is highlighted. The Up and Down arrow
> keys move the selection up or down." I have a similar field in another
> stack that works exactly as expected. The two fields both have their
> listbehavior set to true -- in fact, AFAICS all their basic properties are
> the same. I have no arrowkey handlers in any scripts in the misbehaving
> stack.
>
> Ideas?
>
> -- Peter
>
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig
>
>
> _______________________________________________
> 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

Reply via email to