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. MacOS override cmd+space shortcut
Forum Updated to NodeBB v4.3 + New Features

MacOS override cmd+space shortcut

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.8k Views 1 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.
  • L Offline
    L Offline
    ltise
    wrote on last edited by
    #1

    Hello all!
    How i can override cmd+space shortcut ? by default spotlight appear when i press cmd+space... i tried install eventfilter for qApp and widget, but it not work

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      No.

      Cmd-Space is intercepted by the OS and never delivered to the application.

      PS:
      Oh, and you would make your users very angry if you mangaged to do so. Don't mess with users' experiences!

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • L Offline
        L Offline
        ltise
        wrote on last edited by
        #3

        In Adobe Illustrator, Fontlab cmd+space is fast zoom shortcut.. and all time is work
        My users (designers) accustomed use cmd+space as zoom shortcut and my coworkers not understand way i can't implemented it now in Qt program

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          Yes, you're right. I just checked with InDesign. Although I would call it suboptimal, as the Cmd-Space shortcut acutually does two things: it switches to the zoom tool in InDesign and it opens spotlight.

          It seems that it's not possible to setup this shortcut with Qt (actually one has to add "Ctrl+Space"). Maybe you will need to add some Carbon/Cocoa specific native calls to your application. A quick search on Google led me to nothing, unfortunately.

          http://www.catb.org/~esr/faqs/smart-questions.html

          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