Skip to content
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

Any way to swap the Windows and Alt keys when connecting from a macOS client to a Windows host? #980

Open
briankendall opened this issue Apr 1, 2023 · 3 comments · May be fixed by #1078

Comments

@briankendall
Copy link

Is your feature request related to a problem? Please describe.
When connecting from a mac client to a Windows host (running Sunlight in my case), the keyboard keys that correspond to the WIndows and Alt key have changed places. That is, the Command key is mapped to the WIndows key, and the Option key is mapped to the Alt key. In order to match a Windows keyboard layout, these two keys should be swapped.

Describe the solution you'd like
A simple option that allows swapping the position of these two keys

Describe alternatives you've considered
It might be possible to do it using third party software on the mac, but that's a bit extreme. This is a common problem connecting from a mac client to a Windows host with other screen sharing / streaming apps, so there should probably be a feature to fix this.

Additional context
I didn't find a feature or setting for this, and I'd be willing to hack one in and make a PR. I don't think it'd be very difficult.

@paulpv
Copy link

paulpv commented Oct 3, 2023

Use the Mac's built in ability to re-define the Modifier Keys.
I almost always swap Option and Command.

@briankendall
Copy link
Author

Use the Mac's built in ability to re-define the Modifier Keys.
I almost always swap Option and Command.

If I do that then it will apply system wide. I only want to swap the Command and Option keys when controlling a Windows (or perhaps Linux) system through Moonlight specifically. So that means there needs to be a feature in Moonlight for swapping these two keys when transmitting key events to the host.

@briankendall briankendall linked a pull request Oct 3, 2023 that will close this issue
@rexzhang
Copy link

nice solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants