Replace double quotes with single quotes
This commit is contained in:
parent
0392aa74e2
commit
b17c73bac0
@ -68,14 +68,14 @@ class TextReplacement(Module):
|
|||||||
to_substitute = []
|
to_substitute = []
|
||||||
substitution = []
|
substitution = []
|
||||||
for char in entry:
|
for char in entry:
|
||||||
if char == "_":
|
if char == '_':
|
||||||
key_code = KC.LSHIFT(KC.MINUS)
|
key_code = KC.LSHIFT(KC.MINUS)
|
||||||
else:
|
else:
|
||||||
key_code = getattr(KC, char.upper())
|
key_code = getattr(KC, char.upper())
|
||||||
shifted = char.isupper() or key_code.has_modifiers == {2}
|
shifted = char.isupper() or key_code.has_modifiers == {2}
|
||||||
to_substitute.append(Character(key_code, shifted))
|
to_substitute.append(Character(key_code, shifted))
|
||||||
for char in dictionary[entry]:
|
for char in dictionary[entry]:
|
||||||
if char == "_":
|
if char == '_':
|
||||||
key_code = KC.LSHIFT(KC.MINUS)
|
key_code = KC.LSHIFT(KC.MINUS)
|
||||||
else:
|
else:
|
||||||
key_code = getattr(KC, char.upper())
|
key_code = getattr(KC, char.upper())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user