[Cuis-dev] TextModelMorph focus and scroll
Juan Vuletich
JuanVuletich at zoho.com
Tue Feb 22 12:28:08 PST 2022
On 2/22/2022 12:54 PM, Mariano Montone via Cuis-dev wrote:
> Hi,
>
> when I scroll a TextModelMorph (using mouse scroll) that doesn't have
> focus, and then click on it to edit the contents, the text area
> scrolls to initial position and puts the cursor at the beginning.
>
> I would like to avoid that scroll, and just make the cursor appear on
> clicked position.
>
> I've tried to change that, but haven't spotted how yet.
>
> Perhaps somebody else knows better.
>
> Thanks,
>
> Mariano
Hi Mariano, Folks,
This happens only if you chose 'click to focus'.
There are 2 possible behaviors: click to focus, and then click again to
set cursor position. This is the standard behavior at least on my mac.
Attach 5076-requireFurtherClick does this.
But the alternative, to give focus and set cursor position on a single
click may be better. Attach 5076-sincleClick implements it.
Which one do you prefer?
Cheers,
--
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
https://independent.academia.edu/JuanVuletich
https://www.researchgate.net/profile/Juan-Vuletich
https://patents.justia.com/inventor/juan-manuel-vuletich
@JuanVuletich
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 5076-singleClick-JuanVuletich-2022Feb22-17h18m-jmv.001.cs.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220222/c57a0171/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 5076-requireFurtherClick-JuanVuletich-2022Feb22-17h18m-jmv.001.cs.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220222/c57a0171/attachment-0001.ksh>
More information about the Cuis-dev
mailing list