Robert wrote:Josef Templ wrote:Mouse button usage has been refined for read-only documents.
There is no configuration required.
I don't like this!
It is reasonable that some actions are
disabled in read-only documents, but I don't like that some actions (eg <Ctrl> mouse-left or <Ctrl> mouse-right) do
different things depending on the read-only status of the document.
This is just a reaction; I haven't thought through what I do like!
Robert, I do agree that the behavior should not be
different if that can be achieved with reasonable effort.
(I was not looking at this property so far because if you press Ctrl + mouse-left, for example,
you also get a different behavior in editable and read-only texts.
This was never a problem so far, but it is not very nice indeed.)
The deal here would be to add additional conditions for the various actions.
Not much effort but additional complications in the coding.
Ctrl + mouse-left could be ignored in read-only texts by that.
Similarly, Ctrl + mouse-right could always open the dialog.
(Ctrl + mouse-left in my opinion is mainly for backwards compatibility.
It is a leftover of a historic situation where there was no dialog.
Otherwise its existence doesn't give sense (to me).)
By looking at the details, it turned out that the situation can be
simplified a lot by giving up mouse-right on a link completely.
The result is then a nice symmetry, same behavior in all modes, and no special cases for editable, browser, mask.
Ctrl + mouse left -> reveal cmd inside text
Ctrl + mouse right -> open link dialog
See the diffs at
https://redmine.blackboxframework.org/p ... 5f607b8ed9.
Plus: an off-by-one error fixed in isHot for the right-sided link view.
Docu updated accordingly.
For testing use
http://blackboxframework.org/unstable/i ... c1.990.zip.
- Josef