Thanks Mark. Yes, it is in a sense a workaround - but it's a workaround
the user see/does.
I was hoping to avoid the "surprise" when this one common case doesn't
do what she/he would expect.
Oh - and I've just found the workaround
on openfield
select the selectedchunk
end openfield
I'll open a bug report tonight, unless I can think of a reason why this
behaviour is an advantage.
btw - many apps, particularly Apple's own apps for Mac, follow a
different method. Tabbing into a single-line field will auto-select the
entire field (multi-line fields don't), while clicking into them does
not. I can't find a way to do that in LC - you get an 'openfield'
message but there's no obvious way to tell whether the field was opened
by a TAB or a click.
Alex.
On 12/05/2021 09:03, Mark Smith 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@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@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