http://bugs.winehq.org/show_bug.cgi?id=35351
Bug ID: 35351 Summary: Allow configuring modifier key mapping Product: Wine Version: 1.7.10 Hardware: x86 OS: Mac OS X Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: winemac.drv Assignee: wine-bugs@winehq.org Reporter: trev@adblockplus.org Classification: Unclassified
Currently the modifier key mapping implemented by Mac driver is: Control => Control, Command => Alt, Option => unbound. While this makes some sense, it also makes sure that all keyboard shortcuts are different between native OS X applications and Windows applications running via Wine. This is the reason for numerous requests to remap modifier keys. With the X11 driver people were sent off reconfiguring X11, this is no longer possible with the Mac driver.
Under http://apple.stackexchange.com/a/116546/66895 I verified that modifying default_map in dlls/winemac.drv/keyboard.c has the desired effect, one can define the mapping for the Control key and the two Command keys freely (changing the mapping for the Option key on the other hand is probably not a good idea, at least not without changes to the key handling code). What's missing is merely a way to change the mapping in Wine, patching the binary is currently the only solution and obviously not a great one. There should be a way to do the same via a registry key or a configuration file.