How to globally map AltGr key to Alt key?

后端 未结 7 1158
傲寒
傲寒 2021-01-30 06:31

I want my AltGr key to behave exactly like left Alt.
Usually, I do this kind of stuff with Autohotkey, but I\'m open to different solutions.

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 07:38

    Thank you all for answers. I was unable to solve this using AutoHotkey -- PhilLho's answer was close, but I really needed exatly the same behaviour as with left Alt key.

    However, the registry thing actually worked as I needed.

    Save this as AltGR_to_LeftAlt.reg file and run it:

    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
    "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,38,00,38,e0,00,00,00,00
    

    Or, there is a GUI tool that does this for you -- it's called SharpKeys and works peachy:
    SharpKeys in action

    Oh, and don't forget to reboot or log off -- it won't work until then!

提交回复
热议问题