Bug, feature, or just something I need to program around?
Alex Tweedly
alex at tweedly.net
Wed May 12 10:26:31 EDT 2021
Thanks Sean - but the text cursor shouldn't always be at char 0. It is
the first time you visit the field, but if you
- visit the field
- move the cursor within it
- go off somewhere else
- and later TAB back into that field,
the text cursor should be restored to wherever you left it. That is the
current behaviour - the only problem is this cmd-shift-arrow failing to
select text.
And it turns out that "select the selectedchunk" - which sounds like it
should do nothing - actually leaves the cursor in the correct place,
*and* fixes the cmd-shift-arrow selection problem.
Thanks again,
Alex.
On 12/05/2021 13:19, Sean Cole (Pi) via use-livecode wrote:
> on openField
> select char 0 of me
> end openField
>
> On Wed, 12 May 2021 at 09:03, Mark Smith via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
>> Hi Alex, what sequence are you trying to do that won’t work? If you tab
>> into a field and then cmd-arrow (right or left) I think it restores the
>> “selection” behavior you are looking for ie. you can then shift-cmd-right
>> or left to select the chars. Would that be a work-around?
>>
>>> On May 11, 2021, at 9:22 PM, Alex Tweedly via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>>> In a LC single line field (MacOS), the keys shift-cmd-rightarrow will
>> select from the current position to the end of the line, and add that to
>> the selection.
>>> BUT if I TAB into the field the cursor is initially at the start of the
>> field and the key sequence above will move the cursor to the end *without*
>> selecting the characters.
>>> At that point, shift-cmd-leftarrow will move it back to the start, still
>> without selecting any characters. But if you do "something else" (e.g. left
>> arrow, insert a char, delete a char, ...) then normal behaviour resumes. If
>> you click into the field, everything behaves itself.
>>> Feels to me like a bug, but I'd be happy to be corrected.
>>>
>>> And, if I need to - any suggestions how I could script around it ?
>>>
>>> Thanks,
>>>
>>> Alex.
>>>
>>>
>>> _______________________________________________
>>> 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
>>
> _______________________________________________
> 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