You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: swap <control> and <command> #4003
I used to Sharp Keys to map the keys in Windows but command-W and other defined UTM commands take precedence. I would even be happy if there was a setting to disable host key commands (like those defined in the menu bar) so I could rely on Sharp Keys solely.
Sure, it should be easy. Feel free to send a PR if you want it to be done quickly. Otherwise just be patient as it's already requested and commenting on it doesn't make it go faster.
Honestly, this is one of the main reasons I'm going back to Parallels. This and the lack of suspending of Win11 VM-s.
(not to sound grumpy or entitled :) )
The ROI on the Cmd-Ctrl seems big.
what does the UI have to do with how keystrokes are handled? You'd have to patch it where the keystrokes are handled at kwk, this issue/feature is older than a year, last time someone had this issue I simply suggested remapping within the guest, and that worked fine
My setup: I have Capslock remapped to Cmd and I use Karabiner btw.
I would like that Capslock press to go to UTM's guest as Ctrl, for ultimate "muscle memory" compatibility...
(Win/Linux guests)
This would be a great feature! I'm having mental trouble swapping from Mac shortcuts to Windows shortcuts. I keep messing up because my muscle memory is strong!
I figured out this solution for Windows before discovering this thread, including the excellent powertoys suggestion above. Posting this for folks who might want to have this placed in version control, deployed unattended, or other reasons.
Create file with .reg suffix, merge it, and logout/reboot.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,05,00,00,00,1D,00,5B,E0,1D,E0,5C,E0,5B,E0,1D,00,5C,E0,1D,E0,00,00,00,00
The above achieves the thread goal of swap. I don't tend to use the win key on keyboards that don't have it, so this one rebinds left win to left ctrl and right win to right ctrl. Moreover there are some key combo collisions, such as ctrl-M. It minimizes the guest window because cmd-M is bound to minimize in macOS.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,1D,00,5B,E0,1D,E0,5C,E0,00,00,00,00
Both tested on keyboard without right ctrl key. Particulars gleaned from Lamer87
Activity
pygy commentedon May 18, 2022
Thinking about it, this may interfere with the host keyboard shortcuts...
jfarl commentedon Aug 3, 2022
Seconding this request!
sp33dygtx commentedon Nov 16, 2022
there is karabiner elements but I don't want to go with workarounds for this one
genericptr commentedon Feb 23, 2023
I used to Sharp Keys to map the keys in Windows but command-W and other defined UTM commands take precedence. I would even be happy if there was a setting to disable host key commands (like those defined in the menu bar) so I could rely on Sharp Keys solely.
michaelfresco commentedon May 4, 2023
This would be a game changer!
razvanphp commentedon Sep 6, 2023
Can't upvote this enough!
karol-depka commentedon Nov 26, 2023
This seems [relatively] easy to do?
Parallels has it i think.
Any progress? :)
karol-depka commentedon Nov 26, 2023
Hi. To not interfere with host keys, maybe just a standard subset could be remapped: Cmd+C,V,Z,X,A,F,B,
standard OS stuff
osy commentedon Nov 26, 2023
Sure, it should be easy. Feel free to send a PR if you want it to be done quickly. Otherwise just be patient as it's already requested and commenting on it doesn't make it go faster.
karol-depka commentedon Nov 26, 2023
Honestly, this is one of the main reasons I'm going back to Parallels. This and the lack of suspending of Win11 VM-s.
(not to sound grumpy or entitled :) )
The ROI on the Cmd-Ctrl seems big.
karol-depka commentedon Nov 26, 2023
If You point me to a few files, I might try to have a draft pr :).
osy commentedon Nov 26, 2023
Sure if we are a $10 billion dollar company who charges $100/year and have thousands of employees, then things would be a lot easier...
maybe then we'd care about things like "ROI"
karol-depka commentedon Nov 26, 2023
Opened in XCode. Poking around ;).
karol-depka commentedon Nov 26, 2023
Do You think this would be better handled/patched at qemu level or UTM UI level?
royalgraphx commentedon Nov 26, 2023
what does the UI have to do with how keystrokes are handled? You'd have to patch it where the keystrokes are handled at kwk, this issue/feature is older than a year, last time someone had this issue I simply suggested remapping within the guest, and that worked fine
karol-depka commentedon Nov 26, 2023
My setup: I have Capslock remapped to Cmd and I use Karabiner btw.
I would like that Capslock press to go to UTM's guest as Ctrl, for ultimate "muscle memory" compatibility...
(Win/Linux guests)
theosp commentedon Feb 10, 2024
Some here might find this comment useful: #5513 (comment) (I arrived to this discussion when searching for: 'command w utm')
joelengelhardt commentedon May 21, 2024
This would be a great feature! I'm having mental trouble swapping from Mac shortcuts to Windows shortcuts. I keep messing up because my muscle memory is strong!
martinosimani commentedon Jun 11, 2024
As a working workaround, you could install PowerToys application, and remap the keys from Window's end.
Install Power Toys application:
https://github.com/microsoft/PowerToys/releases/
Go to Keyboard Manager in the sidebar and then click Open Settings.
Click Remap a key and set it up as this:
Working on Windows 11 Pro ARM64
violetstarburst commentedon Jul 28, 2025
I figured out this solution for Windows before discovering this thread, including the excellent powertoys suggestion above. Posting this for folks who might want to have this placed in version control, deployed unattended, or other reasons.
Create file with .reg suffix, merge it, and logout/reboot.
The above achieves the thread goal of swap. I don't tend to use the win key on keyboards that don't have it, so this one rebinds left win to left ctrl and right win to right ctrl. Moreover there are some key combo collisions, such as ctrl-M. It minimizes the guest window because cmd-M is bound to minimize in macOS.
Both tested on keyboard without right ctrl key. Particulars gleaned from Lamer87
settings(macOS): support swapping ctrl and cmd