(*** This bug was imported into bugs.kde.org ***) Package: kate Version: KDE 3.0.5 CVS/CVSup/Snapshot Severity: normal Installed from: Compiled sources Compiler: Not Specified OS: Not Specified OS/Compiler notes: Not Specified Select two words with the mouse starting on the left. Release the left mouse button and press the right mouse button. Bug: the selection will be lost. you have to move a bit to the left (over the selection) with the mouse pointer before you click the right mosue button so that the selection will not be lost. (Submitted via bugs.kde.org)
Judging from the code, it looks like this behaviour is intended. The options are: a) leave as is b) don't check if the cursor is inside the selected area and just popup the rmb menu c) check if the cursor is "near the selection" (like no more than the height on a line or width of one or two chars away). What should we do?
we chosen b), as most compliant to all other kde editors and qt widgets
(we ended with b), since that is similar to other kde editors (kedit, kword))
Actually, b) is the worst solution, as it results in much worse usability problems. For example, see bug #55279. Right-clicking is a contextual action; it should always refer to the object clicked on, not what is selected somewhere else. If you want to take an action on the selection, you should have to click on the selection. For these reasons, I'm going to revert to the old behavior. I don't believe the above description constitutes a bug.