Allow to set mnemonics (accelerators) for button labels
Will be good to have ability to pass accelerator keys on buttons, for give ability to select and press needed key by keyboard, something like this:
-
Con&firm
- pressf
to activate this button -
&Cancel
- pressc
to activate this button -
Read &more
- pressm
to activate this button
This is a common practice for most of menu items and some dialogs, so implementing this in Zenity will improve the usability of dialogs. Here is example of GTK window with "O" and "C" accelerators attached to buttons:
If this is already possible to do using Zenity, please give the example of it.
Steps to reproduce:
- Create any dialog with several buttons, for example:
zenity --info --text "Text to translate" --ok-label="&Pronounce" --extra-button "Translate to &Russian" --extra-button "Translate to &German" --extra-button "Translate to &Italian"
- Give to user ability to quickly activate needed button via matched key press on keyboard (without using mouse or multiple Tab keypresses to choose needed one):
- P - press button "Pronounce"
- R - Translate to Russian
- G - Translate to German
- I - Translate to Italian
Edited by Andre Klapper