gabdube / native-windows-gui

A light windows GUI toolkit for rust
https://gabdube.github.io/native-windows-gui/
MIT License
1.96k stars 127 forks source link

Add documentation for shortcut labels on MenuItem #260

Closed Warwolt closed 2 years ago

Warwolt commented 2 years ago

This PR adds missing documentation for the support in Win32 for shortcut labels on menu items, that is already accessible in Native Windows GUI, but isn't written down anywhere.

image

Writing &Exit\tAlt+F4 in the text field of a MenuItem will add an access key E and a shortcut label Alt+F4. Since these kinds of labels are so frequent in native Windows apps, I think adding documentation for the existing support for these labels are warranted.

I considered editing one of the example-screens, but unfortunately the test screens freeze for me on latest main (they run however when I grabbed the latest release from crates.io).