Skip to content

Commit 3eab642

Browse files
committed
Add inverted punctuation marks to Quick Accent for Spanish and Catalan
When using Spanish or Catalan language in Quick Accent: - Pressing '1' + activation key now shows '' (inverted exclamation mark) - Pressing '/' + activation key now shows '' (inverted question mark) This makes it easier to type Spanish/Catalan punctuation without needing to remember the VK_COMMA shortcut that shows all four marks. The existing VK_COMMA behavior (showing ?!) is preserved for users who prefer that method. Fixes #20618
1 parent 52f2561 commit 3eab642

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/modules/poweraccent/PowerAccent.Core/Languages.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ private static string[] GetDefaultLetterKeySP(LetterKey letter)
385385
{
386386
return letter switch
387387
{
388+
LetterKey.VK_1 => new[] { "¡" },
388389
LetterKey.VK_A => new[] { "á" },
389390
LetterKey.VK_E => new[] { "é", "€" },
390391
LetterKey.VK_H => new[] { "ḥ" },
@@ -393,6 +394,7 @@ private static string[] GetDefaultLetterKeySP(LetterKey letter)
393394
LetterKey.VK_N => new[] { "ñ" },
394395
LetterKey.VK_O => new[] { "ó" },
395396
LetterKey.VK_U => new[] { "ú", "ü" },
397+
LetterKey.VK_SLASH_ => new[] { "¿" },
396398
LetterKey.VK_COMMA => new[] { "¿", "?", "¡", "!" },
397399
_ => Array.Empty<string>(),
398400
};
@@ -403,6 +405,7 @@ private static string[] GetDefaultLetterKeyCA(LetterKey letter)
403405
{
404406
return letter switch
405407
{
408+
LetterKey.VK_1 => new[] { "¡" },
406409
LetterKey.VK_A => new[] { "à", "á" },
407410
LetterKey.VK_C => new[] { "ç" },
408411
LetterKey.VK_E => new[] { "è", "é", "€" },
@@ -411,6 +414,7 @@ private static string[] GetDefaultLetterKeyCA(LetterKey letter)
411414
LetterKey.VK_O => new[] { "ò", "ó" },
412415
LetterKey.VK_U => new[] { "ù", "ú", "ü" },
413416
LetterKey.VK_L => new[] { "·" },
417+
LetterKey.VK_SLASH_ => new[] { "¿" },
414418
LetterKey.VK_COMMA => new[] { "¿", "?", "¡", "!" },
415419
_ => Array.Empty<string>(),
416420
};

0 commit comments

Comments
 (0)