PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Add inverted punctuation marks (¡¿) to Quick Accent for Spanish and Catalan

Open ThanhNguyxn opened this issue 3 weeks ago • 1 comments

Summary of the Pull Request

This PR adds inverted punctuation marks (¡ and ¿) to Quick Accent for Spanish and Catalan languages, making them accessible via dedicated key combinations.

References and Relevant Issues

Fixes #20618

Detailed Description of the Pull Request / Additional comments

Feature Description

When using Spanish or Catalan language in Quick Accent:

  • Pressing 1 + activation key (e.g., Space) now shows ¡ (inverted exclamation mark)
  • Pressing / + activation key now shows ¿ (inverted question mark)

Technical Details

On US keyboard layout:

  • ! is typed with Shift + 1, which registers as VK_1
  • ? is typed with Shift + /, which registers as VK_SLASH_

Since Quick Accent detects virtual key codes rather than the final character, adding the inverted marks to these key mappings allows users to:

  1. Type ! (Shift+1)
  2. Hold the activation key (Space)
  3. Select ¡ from the Quick Accent menu

Changes Made

  • Languages.cs: Added VK_1 => new[] { "¡" } and VK_SLASH_ => new[] { "¿" } to Spanish (SP) language
  • Languages.cs: Added same mappings to Catalan (CA) language (also uses these punctuation marks)

Backward Compatibility

The existing VK_COMMA behavior (showing ¿?¡!) is preserved for users who prefer that method.

Validation Steps Performed

  • Code review verified changes follow existing patterns
  • Built successfully

ThanhNguyxn avatar Dec 03 '25 03:12 ThanhNguyxn

@microsoft-github-policy-service agree

ThanhNguyxn avatar Dec 03 '25 03:12 ThanhNguyxn