Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-64825

[MAC][5.6] Extra (back forward) mouse buttons are incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 5.10
    • 5.6
    • QPA
    • None
    • macOS 10.13, Qt 5.6 from git
    • macOS

    Description

      The mouse extra buttons such as "back" are incorrectly delivered. In this case "back" is delivered as "middle".

       

      This issue is fixed in Qt 5.10, but should be backported to the LTS.

       

      Here is the fix as implemented in 5.10, it works on 5.6 as well:

      /src/plugins/platforms/cocoa/qcocoahelpers.mm

       

      Qt::MouseButton cocoaButton2QtButton(NSInteger buttonNum)
      {
          if (buttonNum >= 0 && buttonNum <= 31)
              return Qt::MouseButton(1 << buttonNum);
          return Qt::NoButton;
      }
      

       

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            mnaydenov Mihail Naydenov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes