pqrs-org / Karabiner-archived

Karabiner (KeyRemap4MacBook) is a powerful utility for keyboard customization.
https://pqrs.org/osx/karabiner/
The Unlicense
3.82k stars 309 forks source link

Please introduce a way to remap the `Ins` key to the `Cmd` or `Ctrl` or `Option` key #809

Open diwu1989 opened 7 years ago

diwu1989 commented 7 years ago

I have a Cherry ML4100 keyboard that doesn't have the windows key at the right place, however, I do have a Ins key that isn't used much

Keyboard looks like this image

The fn key on the left side next to ctrl isn't registered by the computer Can you help please?

dunkarooftop commented 7 years ago
<item>
  <name>Change "Ins" to Modifier</name>
  <identifier>private.change.ins.to.modifier</identifier>
      <autogen>
        __KeyToKey__
        KeyCode::PC_INSERT,
        KeyCode::COMMAND_L,
      </autogen>
</item>

The code above change "Ins" to "Left command", you can change the line "COMMAND_L" to other modifier to fit your need.

Just put those code in your private.xml and enable it

for how to put it in private.xml refer to https://pqrs.org/osx/karabiner/xml.html.en (highly recommend give the whole reference doc a read so you know what is possible, lots cool stuff)

for list of Karabiner keycode refer to https://github.com/tekezo/Karabiner/blob/master/src/bridge/generator/keycode/data/KeyCode.data

let me know if you have any more question

7fe commented 7 years ago

this should be closed.