Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 1.2.1
-
None
Description
Platform
Windows Vista
Platform details
Compilers
GCC
Compiler details
Subject
Unwanted link following after paste.
Steps to reproduce / test case
Find a function, e.g.
fwrite(...);
Copy the text 'read'.
Now do this carefully and quickly:
1. Select the text 'write' with the mouse. Do not release the mouse button.
2. Press ctrl-V to paste the text. Release V, but not Ctrl.
3. Release the mouse button.
Result: The text is pasted but you also jump to the definition of fread (or maybe fwrite). This also occurs if you do
1. Select text, keep mouse button pressed.
2. Hold CTRL
3. Release mouse button.
Although in that case it seems more reasonable.
Now you might think this is a particularly convoluted sequence of steps, but I find myself doing it several times a day. Possible fixes:
1. Follow the link on mouse-down, not mouse-up.
2. Suspend the link-following until the next mouse-up if a ctrl shortcut is activated while the mouse is down (ctrl-c, ctrl-v, maybe others).
3. Only activate link-following when ctrl is held if the mouse button is initially up. I.e:
void onCtrlPressed() { if (mouse->buttons() & Qt::LeftButton) return; activateLinkHoverMode(); }
Attachments
Issue Links
- is replaced by
-
QTCREATORBUG-134 Mouse navigation activates too easily
-
- Closed
-