Is it possible to replace double quote key to single quote with Karabiner (keyboard customizer for OS X)?
Asked
Active
Viewed 1,070 times
2 Answers
3
Yes, I think so. Look into how the private.xml
works, which you can open via the Misc & Uninstall
Tab. However, I think for changing the actual key codes you need seil, but you can probably do it with Karabiner alone by remapping SHIFT_L + QUOTE
.
You might end up w/ s.th. like this:
<?xml version="1.0"?>
<root>
<item>
<name>Double Quote to Single Quote</name>
<identifier>private.double_quote_to_single_quote</identifier>
<autogen>
__KeyToKey__
KeyCode::QUOTE, ModifierKey::SHIFT_L,
KeyCode::QUOTE
</autogen>
</item>
</root>
This is just a guess though, but hopefully brings you in the right direction.

rweng
- 6,736
- 7
- 27
- 30
-
This example is correct. The only thing you might want to adjust for real usage is change `ModifierKey::SHIFT_L` to `MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT`. (Granted most people probably don't hit right shift along with the apostrophe key, but it's possible.) – tubedogg Sep 09 '16 at 08:39
1
I have found this when I was searching for a way to swap single quote and double quote. This is how I've managed to do it with this: https://ke-complex-modifications.pqrs.org/#exchange_single_and_double_quote

stasdeep
- 2,758
- 1
- 16
- 29