How can I disable shift (or any modifier) for some keys but not for others?

1.3k Views Asked by At

I have a bad habit of using right shift to write quotes (""). See, I just did it right there.

I'd like to disable the specific combination of R_SHIFT+" so I'm forced to use the left shift.

Does anyone know how to do this?

I think I'll eventually expand this to all of the keys on the right side of the keyboard too.

1

There are 1 best solutions below

5
On BEST ANSWER

You will have to edit your ~/.config/karabiner/karabiner.json file and simply define a:

"from": { "key_code": "quote",
          "modifiers":{ "mandatory": ["right_shift"] } },
  "to":[ {"key_code": "vk_none"} ],
"type":   "basic"

manipulator.
See how to use K-E's event definitions at Karabiner-Elements' Reference Manual page.