Results 1 to 3 of 3

Thread: Qt::Key_Control on Mac OSX? It is mapped to Command key... why not the Ctrl key?

  1. #1
    Join Date
    May 2006
    Location
    Stockholm, Sweden
    Posts
    81
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Qt::Key_Control on Mac OSX? It is mapped to Command key... why not the Ctrl key?

    Hi!

    I have recently switched from Linux to Mac. And I have found that there are some really onying differences in different libraries between these two OS. The most recent I found is in Qt and is the mapping of Qt::Key_Control. On Linux this key is mapped to the Ctrl key, it seems to be quite intuitiv. But om MacOSX it is mapped to the command key. That is the key that is Alt on a PC keyboard... why is it not mapped to the Ctrl key?

    Is there a way to use Ctrl key on both Mac and Linux? This can't be done by using Qt::Key_Control since this means Ctrl on Linux and Command key on Mac.

    thanks
    pir

  2. #2
    Join Date
    May 2006
    Location
    Stockholm, Sweden
    Posts
    81
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Qt::Key_Control on Mac OSX? It is mapped to Command key... why not the Ctrl key?

    OK, I've missed that Qt::Key_Meta is Ctrl key on MacOSX... I suppose there are some reason for this. Because I think it really would be this one that would be mapped to the command key.

  3. #3
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt::Key_Control on Mac OSX? It is mapped to Command key... why not the Ctrl key?

    The Command key is used as the Control key on the Mac, even though it also has it's own Control key. To copy and paste, for example, you use Cmd-C and Cmd-V.

    This is normal for the Mac, and what Mac users expect.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.