Skip to content

Commit ab86d2a

Browse files
committed
Explicitate the domain of virtual-keys must always be used for accelerators.
1 parent fb00ace commit ab86d2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hub/apps/design/input/keyboard-accelerators.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,9 @@ We recommend localizing all keyboard accelerators. You can do this with the stan
586586
</Button>
587587
```
588588

589+
> [!NOTE]
590+
> Keyboard accelerators are implemented as virtual-keys. Localized accelerators must be chosen from the predefined domain of virtual-keys (see [Virtual-Key codes](/windows/win32/inputdev/virtual-key-codes)). Any other character is not supported and will lead to Xaml parser error.
591+
589592
### Setup an accelerator programmatically
590593

591594
Here is an example of programmatically defining an accelerator:

0 commit comments

Comments
 (0)