Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-157

Unwanted link following after paste

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 1.2.1
    • Editors
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              lindeije Thorbjørn Lindeijer (closed Nokia identity) (Inactive)
              dajansen Damian Jansen (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes