PowerToys
PowerToys copied to clipboard
Add inverted punctuation marks (¡¿) to Quick Accent for Spanish and Catalan
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 withShift + 1, which registers asVK_1?is typed withShift + /, which registers asVK_SLASH_
Since Quick Accent detects virtual key codes rather than the final character, adding the inverted marks to these key mappings allows users to:
- Type
!(Shift+1) - Hold the activation key (Space)
- Select
¡from the Quick Accent menu
Changes Made
- Languages.cs: Added
VK_1 => new[] { "¡" }andVK_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
@microsoft-github-policy-service agree