Replace double quotes with single quotes

This commit is contained in:
James Fitzgerald 2022-06-30 16:57:43 -04:00 committed by xs5871
parent 0392aa74e2
commit b17c73bac0

View File

@ -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())