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 · 6 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

@pyos
Copy link

pyos commented Jul 30, 2024

Rather than swapping Win and Alt, wouldn't it make more sense to swap Win and Ctrl so that the common shortcuts use identical keys? E.g. Cmd+C on macOS <=> Ctrl+C on Windows.

@briankendall
Copy link
Author

Rather than swapping Win and Alt, wouldn't it make more sense to swap Win and Ctrl so that the common shortcuts use identical keys? E.g. Cmd+C on macOS <=> Ctrl+C on Windows.

Personally I want the keys on my keyboard to match what I'm used to for that OS, especially for those moments where I need to use a keyboard shortcut involving Win or Ctrl. It gets confusing when the Win key is in the position the Ctrl key is supposed to be. But perhaps another user would like that.

@snipcola
Copy link

snipcola commented Sep 8, 2024

If you use PowerToys, it's possible. You just have to remap alt to win and vice-versa.
nulled 2024-09-08 21 03 17

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.

5 participants