-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable MacKeyboardScheme, make QKeySequence::StandardKey behave like on the Mac #12
Comments
Need to find a way to get https://doc.qt.io/qt-5/qkeysequence.html#StandardKey-enum
How can we change it so that it behaves like on the Mac? |
If we can't find another way to implement this, then maybe go the |
The keyboard scheme is set by the platform theme. Which is defined is sort of documented. You can force a theme by setting the The only themes that return You could consider creating a helloSystem platformtheme plugin that simply reimplements themeHint() to do the right thing. There is something like this done for GTK3 or QXdgDesktopPortal, so it might be a starting point there. This is at least a basic map of what you would need to do, hope this helps. |
Thanks @NorwegianRockCat. We are exporting
In any case, will follow your hint to check out what GTK3 and QXdgDesktopPortal are doing. |
Currently we have the clearly Windows-inspired "F3" for Find Again, whereas we want Command-G.
Supposedly we can get this for all Qt applications by setting
QPlatformTheme::MacKeyboardScheme
. How?Command-G is mentioned in the early Macintosh Human Interface Guidelines:
Source: Apple Computer, Inc. 1992. Macintosh human interface guidelines. Addison-Wesley Publishing Company, USA. https://dl.acm.org/doi/book/10.5555/573097
The text was updated successfully, but these errors were encountered: