diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-10-18 15:14:21 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-10-18 18:59:30 +0200 |
commit | a84f4ef9a8694769fc942774bcf992de3a6abc88 (patch) | |
tree | f3f02a8e91bd91ac71183e7fba8b5c92f573be03 | |
parent | ef7da29145c461877ba6aad0c72ec398eca650cb (diff) |
svtools a11y: Set underline/mnemonic char for "Restart" dialog
Set the "use-underline" property for the buttons in the
"Restart %PRODUCTNAME" dialog and specify the accelerators.
This way, the dialog can easily be closed using Alt+[accelerator]
with the gtk3 and qt5/qt6 VCL plugin as well.
Use those characters that the VCL logic was using as well.
(The VCL implementation seems to have some way to auto-generate
mnemonic characters if none is set automatically.)
This dialog is e.g. seen when toggling experimental mode in
"Tools" -> "Options" and closing the options dialog with the
"OK" button.
Change-Id: I50c3402fb89d5fbfc0e610c0e41f5f035cf0b0e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175137
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r-- | svtools/uiconfig/ui/restartdialog.ui | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svtools/uiconfig/ui/restartdialog.ui b/svtools/uiconfig/ui/restartdialog.ui index 92115e04d815..a25cca14cd8c 100644 --- a/svtools/uiconfig/ui/restartdialog.ui +++ b/svtools/uiconfig/ui/restartdialog.ui @@ -23,12 +23,13 @@ <property name="layout-style">end</property> <child> <object class="GtkButton" id="yes"> - <property name="label" translatable="yes" context="restartdialog|yes">Restart Now</property> + <property name="label" translatable="yes" context="restartdialog|yes">_Restart Now</property> <property name="visible">True</property> <property name="can-focus">True</property> <property name="can-default">True</property> <property name="has-default">True</property> <property name="receives-default">True</property> + <property name="use-underline">True</property> </object> <packing> <property name="expand">False</property> @@ -38,10 +39,11 @@ </child> <child> <object class="GtkButton" id="no"> - <property name="label" translatable="yes" context="restartdialog|no">Restart Later</property> + <property name="label" translatable="yes" context="restartdialog|no">Restart _Later</property> <property name="visible">True</property> <property name="can-focus">True</property> <property name="receives-default">True</property> + <property name="use-underline">True</property> </object> <packing> <property name="expand">False</property> |