Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Involuntary select in spite of NoSelect = True #301

Open
manliomazzon opened this issue Jul 9, 2021 · 0 comments
Open

Involuntary select in spite of NoSelect = True #301

manliomazzon opened this issue Jul 9, 2021 · 0 comments

Comments

@manliomazzon
Copy link

manliomazzon commented Jul 9, 2021

If NoSelect is True, but you shift + click on some text, the text gets selected anyway, with the selection going from the previous caret position up to the position where you clicked.

If fixed it in my copy by changing this line (file HtmlView.pas, inside method THtmlViewer.HTMLMouseDown):

    if (ssShift in Shift) then

to this:

    if (ssShift in Shift) and not NoSelect then

In other words, Shift-clicking will now only cause a selection is NoSelect is also False.

Perhaps there's a better way to do this, otherwise this may help fix the problem.

Thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant