[Bug 35351] New: Allow configuring modifier key mapping
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(a)winehq.org Reporter: trev(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=35351 Simon <swdevelop1981(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |swdevelop1981(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=35351 t.bussmann(a)gmx.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |t.bussmann(a)gmx.net -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35351 ball <deadballo(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |deadballo(a)gmail.com --- Comment #1 from ball <deadballo(a)gmail.com> --- Can somebody please explain why command is mapped to alt instead of option (aka ALT)? Surely, the sane default mapping would be: ctrl->ctrl alt->alt apple->windows This seems to be some insane hold-over from Apple's X11 implementation of mode switch -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35351 --- Comment #2 from Ken Thomases <ken(a)codeweavers.com> --- (In reply to ball from comment #1)
Can somebody please explain why command is mapped to alt instead of option (aka ALT)?
Because the Option key (a.k.a. Alt) is the only way to access additional characters from the keyboard layout. If it were mapped to Windows Alt, then it would prevent access to those characters. On many keyboard layouts, such keys are absolutely crucial. (For example, in the French keyboard layout, you need to use the Option key to type the "@" sign, which comes up a lot in email addresses.)
Surely, the sane default mapping would be:
ctrl->ctrl alt->alt apple->windows
Except that the Option key doesn't work like a Windows Alt key in any other part of OS X. And nothing works like the Windows key; certainly not the Command key.
This seems to be some insane hold-over from Apple's X11 implementation of mode switch
You're welcome to consider it insane, but, no, it's not from that. I have no problem with Wladimir's request/suggestion. I may implement something like it someday, although I welcome if somebody else wants to do it first. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35351 Ken Thomases <ken(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ken(a)codeweavers.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35351 --- Comment #3 from ball <deadballo(a)gmail.com> --- Isn't the '@' sign on the French keyboard shift-zero? Anyway, I hadn't considered that problem. I honestly don't even use the Alt key in windows (always found it awkward as hell). In the process of modifying the hardcoded source for my purposes. At least its open source :) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35351 Ken Thomases <ken(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tblodt(a)icloud.com --- Comment #4 from Ken Thomases <ken(a)codeweavers.com> --- *** Bug 38770 has been marked as a duplicate of this bug. *** -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35351 Jactry Zeng <jactry92(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jactry92(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35351 Andy P <pembertona(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pembertona(a)gmail.com --- Comment #5 from Andy P <pembertona(a)gmail.com> --- Any progress? Would be ideal on Mac if command and control keys were switched in the default mappings. Otherwise the ability to configure via registry or otherwise would be nice. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35351 tokktokk <fdsfgs(a)krutt.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs(a)krutt.org -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35351 Ricky Zhou <ricky(a)rzhou.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ricky(a)rzhou.org --- Comment #6 from Ricky Zhou <ricky(a)rzhou.org> --- This should hopefully be addressed by https://source.winehq.org/git/wine.git/commit/f621baa00f649a41d64908980661b1... which I think should make it into 3.17. The following registry keys under HKEY_CURRENT_USER\Software\Wine\Mac Driver can be set to "y": LeftOptionIsAlt RightOptionIsAlt LeftCommandIsCtrl RightCommandIsCtrl This allows configuring the Opt key to behave as Alt in windows apps, and the Cmd key to behave as Ctrl instead of Alt. Note that these registry settings do not apply to global hotkeys (see discussion at https://www.winehq.org/pipermail/wine-devel/2018-September/131955.html) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35351 Ken Thomases <ken(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |f621baa00f649a41d6490898066 | |1b1bdaf65ad9e Resolution|--- |FIXED --- Comment #7 from Ken Thomases <ken(a)codeweavers.com> --- Fixed by https://source.winehq.org/git/wine.git/commit/f621baa00f649a41d64908980661b1... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35351 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #8 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 5.1. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla