Skip to content

Conversation

@ThanhNguyxn
Copy link

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

Copilot AI review requested due to automatic review settings December 3, 2025 03:12
@ThanhNguyxn
Copy link
Author

@microsoft-github-policy-service agree

Copilot finished reviewing on behalf of ThanhNguyxn December 3, 2025 03:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the Quick Accent feature for Spanish and Catalan languages by adding dedicated key mappings for inverted punctuation marks (¡ and ¿), which are essential characters in these languages. The implementation follows the technical constraint that Quick Accent detects virtual key codes rather than final characters, so the inverted marks are mapped to VK_1 (for ! typed with Shift+1) and VK_SLASH_ (for ? typed with Shift+/).

Key Changes:

  • Added VK_1 => new[] { "¡" } and VK_SLASH_ => new[] { "¿" } mappings to both Spanish and Catalan language configurations
  • Preserved existing VK_COMMA behavior for backward compatibility
  • Consistent implementation across both language definitions

@ThanhNguyxn ThanhNguyxn force-pushed the fix/quick-accent-spanish-punctuation branch 3 times, most recently from 3eab642 to 682b3de Compare December 5, 2025 10:53
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 microsoft#20618
@ThanhNguyxn ThanhNguyxn force-pushed the fix/quick-accent-spanish-punctuation branch from 682b3de to e84436e Compare December 5, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quick Accent: Enhancement: Add "¡" and "¿" to "!" and "?" quick accent menu

1 participant