Thanks for your response! However, the situation is a bit more complex than just swapping ControlModifier and MetaModifier on macOS.
Modifier keys on macOS can be remapped in the Keyboard Modifier Settings. This means ControlModifier does not always correspond to the Command key, and MetaModifier does not always correspond to the Control key. If a user changes these settings, Qt's default mapping no longer reflects the actual physical key being pressed.
Command + Left Click is interpreted as a Right Click on macOS by default. This behavior is designed for trackpads and Magic Mouse, but it creates inconsistencies when handling shortcuts. If a user assigns a shortcut using Command, it might get detected as Control, leading to confusion.
Users may perceive this as a bug because when setting up a shortcut, they might press Command, but the program registers it as Control (or vice versa, depending on their settings). If they modify their keyboard settings, all existing shortcuts could become misaligned.
I am looking for a way to access native modifier keys directly, so that when setting up shortcuts, the program accurately detects the actual key pressed, regardless of macOS system settings. Is there a way to achieve this in Qt?