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

Unable to use Meta/Super key for Copy&Paste on Linux (like on macOS)

    XMLWordPrintable

Details

    • Linux/X11

    Description

      I'm trying to get all major apps on my Linux system to use Meta+C/V instead of Ctrl+C/V.
      Apparently it is possible to achieve that on a KDE system by modfying the kdeglobals config file.

       

      Though I'm on a non-KDE system which uses qt5ct (theme) to adjust QT settings. The tool does not offer to change key bindings directly, but change the keyboard scheme hint under Interface > Keyboard scheme. It is possible to set that to "Mac OS X", which is feature I'm looking for I think. Though it does not switch Ctrl and Meta.

       

      I checked the source code and I think it should do that. You can verify here that using a macOS keyboard means that the Meta key will be chosen for Copy&Paste: https://github.com/qt/qtbase/blob/8566c2db85a6f579a1a0432d0b7621633158e04c/src/gui/kernel/qplatformtheme.cpp#L194-L201

       

      It also seems like the themes keyboard settings are honored: https://github.com/qt/qtbase/blob/8566c2db85a6f579a1a0432d0b7621633158e04c/src/gui/kernel/qplatformtheme.cpp#L852

       

      I think there might be a bug. Alternateively, is there another way to use a macOS keyboard successfully with Qt on Linux?

       

      Attachments

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

        Activity

          People

            liaqi Liang Qi
            maxammann Max Ammann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes