Skip to content

Add menu mnemonics#139

Merged
ptsouchlos merged 1 commit intofstl-app:masterfrom
stefanschramm:menu-mnemonics
Jan 19, 2026
Merged

Add menu mnemonics#139
ptsouchlos merged 1 commit intofstl-app:masterfrom
stefanschramm:menu-mnemonics

Conversation

@stefanschramm
Copy link
Contributor

Adds mnemonics (shortcuts) to menus and menu entries to improve keyboard navigation

@stefanschramm
Copy link
Contributor Author

Mnemonics for well-known actions are inspired by the Kate editor

@ptsouchlos
Copy link
Member

Sorry but I'm not familiar with the purpose of this. Is it to make the menu items easier to read? Also how are the letters selected to be underlined or not? It appears a bit arbitrary to me at a first look, but I assume that is due to a lack of knowledge on my part.

@stefanschramm
Copy link
Contributor Author

Hi! It's to make the menus keyboard-accessible. For example the user can press Alt+F to open the file menu and then I for "Open with". It's explained here: https://doc.qt.io/qt-6/qaction.html#text-prop

I think it is considered a good-practice to give all menus/actions these mnemonics. You see them in nearly all (Qt) applications.

Usually the first letter is used, but in some cases it's more reasonable to use another one when there are multiple entries with the same starting letter.

@ptsouchlos
Copy link
Member

Interesting, thanks for the link.

Most of these shortcuts don't work for me as I am on Hyprland and have many conflicting keyboard shortcuts, but I think this is a positive change for the software. Eventually, we do want customizable shortcuts, but that can come at a later time.

@ptsouchlos ptsouchlos merged commit b4e1920 into fstl-app:master Jan 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants