lxn / walk

A Windows GUI toolkit for the Go Programming Language
Other
6.86k stars 887 forks source link

Bug: Ampersand chars `&` get interpreted as shortcut key. #769

Open gabyx opened 3 years ago

gabyx commented 3 years ago

Making a Pushbutton with and &

PushButton{Text:      "Curry & Banana"}

will result in interpreting as the prefix to a shortcut key by default. https://stackoverflow.com/a/43809221/293195

I think in general this should not happen. And walk should handle this, or disable this behavior, and if this feature is wanted provide it by its own means.

StephanVerbeeck commented 1 year ago

This is a windows feature. Happens also in menu text. Not related to WALK. Use double ampersand to display an ampersand as text.

PushButton{Text:      "Curry && Banana"}