UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Feature request: swap <control> and <command>

Open pygy opened this issue 3 years ago • 19 comments

Hi, it would be awesome if you could add the possibility to swap the ⌃ (control) and ⌘ in the VM.

I have the ⌘ + C + V, S shortcuts hardwired in my fingers after 10+ years of MacOS usage, and the guest OSes have these mapped to ⌃ (control) instead.

pygy avatar May 12 '22 09:05 pygy

Thinking about it, this may interfere with the host keyboard shortcuts...

pygy avatar May 18 '22 13:05 pygy

Seconding this request!

jfarl avatar Aug 03 '22 18:08 jfarl

there is karabiner elements but I don't want to go with workarounds for this one

sp33dygtx avatar Nov 16 '22 11:11 sp33dygtx

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.

genericptr avatar Feb 23 '23 09:02 genericptr

This would be a game changer!

michaelfresco avatar May 04 '23 02:05 michaelfresco

Can't upvote this enough!

razvanphp avatar Sep 06 '23 07:09 razvanphp

This seems [relatively] easy to do? Parallels has it i think.

Any progress? :)

karol-depka avatar Nov 26 '23 04:11 karol-depka

Thinking about it, this may interfere with the host keyboard shortcuts...

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

karol-depka avatar Nov 26 '23 04:11 karol-depka

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.

osy avatar Nov 26 '23 04:11 osy

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 avatar Nov 26 '23 04:11 karol-depka

If You point me to a few files, I might try to have a draft pr :).

karol-depka avatar Nov 26 '23 04:11 karol-depka

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"

osy avatar Nov 26 '23 04:11 osy

Opened in XCode. Poking around ;).

karol-depka avatar Nov 26 '23 04:11 karol-depka

Do You think this would be better handled/patched at qemu level or UTM UI level?

karol-depka avatar Nov 26 '23 04:11 karol-depka

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

royalgraphx avatar Nov 26 '23 04:11 royalgraphx

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)

karol-depka avatar Nov 26 '23 04:11 karol-depka

Some here might find this comment useful: https://github.com/utmapp/UTM/issues/5513#issuecomment-1936946751 (I arrived to this discussion when searching for: 'command w utm')

theosp avatar Feb 10 '24 09:02 theosp