frankjonen

Mapping the 'App Key' - macOS High Sierra

Apr 12th, 2018
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.77 KB | None | 0 0
  1. # To use the `App Key` (found on non-Mac keyboards) you have to remap it manually from the Terminal.
  2. # The keyboard modifier mapper in macOS only lets you change: Caps Lock, Control, Option, Command.
  3. #
  4. # For off-beat keys you need to use the Human Interface Device Utility, short hidutil.
  5.  
  6.  
  7. # Set `App Key` to `Right Option Key`
  8. hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000065,"HIDKeyboardModifierMappingDst":0x7000000e6}]}'
  9.  
  10. # Set `App Key` to `Right GUI Key` (Command Key on Mac, Windows key on Windows, etc)
  11. hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000065,"HIDKeyboardModifierMappingDst":0x7000000e7}]}'
  12.  
  13.  
  14. Reference: https://developer.apple.com/library/content/technotes/tn2450/_index.html
Advertisement
Add Comment
Please, Sign In to add comment