mapping modifier keys swaps left and right

Originator:fwvdijk
Number:rdar://39961709 Date Originated:2018-05-04
Status:open Resolved:
Product:macOS + SDK Product Version:10.13.4
Classification:UI Reproducible:yes
 
Area:
Preferences

Summary:

In "Keyboard -> Modifier Keys", when mapping Option to Command, left option is mapped to right command, right option to left command.
Similar for mapping Command to Option.

Can cause problems for example when remotely accessing an OS that has a notion of "AltGr" (right alt on international keyboards) for composing accented characters etc.

When mapping Caps Lock to Control, Caps Lock is mapped to Right Control.

Steps to Reproduce:

In System Preferences -> Keyboard -> Modifier Keys, swap "Option" and "Command", set action for "Caps Lock" to "Control"

You can verify results using for example https://w3c.github.io/uievents/tools/key-event-viewer.html ; this page shows details of key events as seen by the browser, including leftness and rightness.

Expected Results:

Left Command <-> Left Option
Right Command <-> Right Option
Caps Lock -> Left Control (arguably)

Actual Results:

Left Command <-> Right Option
Right Command <-> Left Option
Caps Lock -> Right Control

Workaround:

edit ~/Library/Preferences/ByHost/.GlobalPreferences.xxx.plist, correct the key mappings as given by TN2450, log out, log in.

Version/Build:

10.13.1, 10.13.4. 

10.12 didn't seem to have this issue.

Comments

still broken on 10.14, even after unswapping and reswapping command and option.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!