Skip to content

Improve how shortcut special keys for menu items are rendered on Windows and Linux #5108

Closed
@ErikKalkoken

Description

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

With Fyne it is possible to define shortcuts and assign them to menu items. Those shortcuts are then rendered alongside the menu item to inform the user about them.

However, special keys (e.g. ALT, SHIFT, ..) are always rendered as symbols - and apparently in macOS style -, which will most likely be confusing to many users on Windows and Linux.

Example from the Demo App:
Screenshot from 2024-09-03 19-44-23

e.g. the 2nd symbol from the left is actually the ALT key

Is it possible to construct a solution with the existing API?

No

Describe the solution you'd like to see.

I would suggest to render all special keys as plain text on Windows and Linux. E.g. "Alt" and use the "+" key as separator, e.g. "Alt+G" or "Ctrl+C". This appears to be how most apps on Linux and Windows are doing it.

The following example is VS Code on Ubuntu/Gnome:

Screenshot from 2024-09-03 19-58-09

And here LibreOffice Word on Ubuntu/Gnome:

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions