Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. "ABC - Extended" macOS Keyboard stealing kb shortcuts?

"ABC - Extended" macOS Keyboard stealing kb shortcuts?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 591 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    patrickkidd
    wrote on last edited by
    #1

    I am seeing a very strange problem where one of my QActions takes over a particular key sequence after a few triggers when I use the "ABC - Extended" keyboard in macOS. This is difficult to reproduce precisely. I have:

    • actionZoom_Out which uses the "Ctrl+-" key sequence set in Creator.
    • actionHide_Layers which uses the "Ctrl+Alt+L" key sequence set in Creator.

    If I trigger these actions a few times then actionZoom_Out receives all "Ctrl+Alt+L" key sequences, even though qDebug() << actionZoom_Out->shortcut().toString(); still prints out... "Ctrl+-" from the slot connected to actionZoom_Out.

    QObject::sender() from the connected slot returns actionZoom_Out. If I set the macOS keyboard to "U.S" then the problem goes away. I would produce a simple example that exhibited this behavior but my app is quite complex and this would be difficult.

    Has anyone seen anything like this before?

    https://alaskafamilysystems.com/

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Might be a silly question but does it also happen if you change the shortcuts ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        patrickkidd
        wrote on last edited by
        #3

        It does not occur when I change actionHide_Layers (Ctrl+Alt+L) to (Ctrl+Shift+L). This indicates to me that the "ABC - Extended" keyboard is actually sending Ctrl+- key event when Ctrl+Alt+L is pressed.

        Wow.

        https://alaskafamilysystems.com/

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I do wonder at what level this happens...

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved