-
Notifications
You must be signed in to change notification settings - Fork 862
Add support for CMD / CTRL swapping on MacOS #1526
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a great addition. The control (strg on windows) is usually harder to reach on macOS keyboards and is not used much. It would also be very helpful for games where you could then bind the cmd key which is not possible right now as it is never sent as its considered a system key. This is also why I see no harm here because without the switching the key is simply never send.
I also don't think it doesn't have to be OS specific here. The cmd key is just the windows key. Just adjusting the lable is probably fine (as suggested by me).
We could also change the option to just be: "Sent the left windows/cmd button as strg'. This would already probably be what most people want. You still keep your right windows button.
BTW there is already a similar PR that was never merged: #1078 But I think swaping with strg is more idiomatic. |
Co-authored-by: Alexander Theißen <[email protected]>
@cgutman Would you consider merging this? Do you have any concerns? |
I'd love to see this implemented. We're trying out Moonlight and this is the one function stopping us from migrating completely. |
@soywiz i wonder if instead of this being an entirely new menu option it's just a third option for the existing dropdown... if the concern is clutter |
Can you indicate which existing dropdown? Can't find anything related. |
@soywiz I had read something on one of these related requests there was a concern about too many menu items. I'd suggest changing 'capture system keyboard shortcuts' to always/fullscreen/swap super only |
Thanks. Can you provide the link so I can read the full conversation?
What if the user wants to use always or fullscreen and also swap? Would we need 4 options in the selector? Other option could be an advanced settings, where you could remap any key. That would require a refactor and a lot of work and that's beyond what I can contribute here. In any case @twcut the project is pretty straightforward to build on a mac following the README, you can use my branch and build it and use it locally so you can switch to moonlight. I'm using a build with my branch already. |
Thank you so much for this PR. I have been trying for like 4 hours now to get something to do this for either Sunshine or VNC. |
In macOS usually ctrl+c, ctrl+v, ctrl+f and the like are mapped to cmd+c, cmd+v, cmd+f, etc. some apps like Parallels Desktop do this swap too.
This adds an option to allow swapping cmd and ctrl keys.
Right now the option is not translated, and it appears in all the platforms;
we could add this option only on mac but I don't have experience with Qt, so I will need help with that.