Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

🧪 [Experiment] Localized AccessKey

Aperta
#812 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
csharp
Ambito
desktop

Direzione di ricerca

L’issue nomina l’estensione di markup LocalizedAccessKey e ne mostra l’utilizzo in XAML, ma non indica alcun file sorgente né alcun test. Inizia individuando il componente e l’esempio WinUI 3 esistente, quindi identifica come testare la conversione del layout della tastiera; il lavoro è completato quando esiste una copertura con unit test per il comportamento non testato e l’esecuzione dei test ha esito positivo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

experiment :test_tube:
Approved from Discussion

https://github.com/CommunityToolkit/Labs-Windows/discussions/811

Problem Statement

By default, WinUI requires the user to type exactly the requested access key sequence to trigger an access key.
The mapping is done using the characters not the key codes.

Not all characters can be typed on all keyboard layouts.
For example, the latin character "V" is not available on the Greek keyboard layout. It is replaced by "Ω".

This means that a button defined with the following XAML fragment won't be reachable through its access key when using a Greek keyboard.

<Button AccessKey="V" Content="Click me" />

The user will have to switch the the English (or any other latin) keyboard layout to be able to type "V".

Overview

This experiment adds the following component:

  • LocalizedAccessKey a markup extension which will convert a sequence of VirtualKey to their corresponding characters based on the current keyboard layout.
Using

You can try it out via the NuGet Packages here:

Code

<Button AccessKey="{toolkit:LocalizedAccessKey V}" Content="Click me" />

Result

Image
Additional info

No response

Implementation Requirements
  • Working Prototype
  • Feature Complete
  • Documentation
  • Samples
  • Unit Tests
  • Community Feedback / Usage Testimonies
Tested Platforms
  • UWP
  • WinAppSDK / WinUI 3
  • Web Assembly (WASM)
  • Android
  • iOS
  • MacOS
  • Linux / GTK
Technical Review
  • Accessibility Audit
  • API/Naming Review
  • Code Quality/Style
  • Dependency Review
  • Design/Style Review
  • Final Approval
Community Help?

None

Lingua principale
C#
Stelle
483
Fork
89
Merge medio
4g 5h
PR unite (30g)
2

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CommunityToolkit/Labs-Windows

Tutte le issue di CommunityToolkit/Labs-Windows

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.