JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.96k stars 1.16k forks source link

[Feature] Empty KeyStroke for assigning menu item shortcuts #245

Open xetra11 opened 3 years ago

xetra11 commented 3 years ago

Quoting @tkuenneth

On Windows the "About" menu item usually has no shortcut. However, Compose for Desktop currently uses KeyStroke(Key.Unknown) as a default (if I do not pass one in), so I end with this.

We need a way to define an "empty" keystroke. The default Unknown renders this image

okushnikov commented 2 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.