From 592ad186c66b67f14ac305912d137f9acc919411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 14 Dec 2023 19:14:33 +0100 Subject: [PATCH] extension-app: Use mnemonics in confirmation dialog Mnemonics (aka "access keys") should be used whenever possible: https://developer.gnome.org/hig/guidelines/keyboard.html#access-keys They are currently missing from the confirmation dialog, add them. Part-of: --- subprojects/extensions-app/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/extensions-app/js/main.js b/subprojects/extensions-app/js/main.js index 529db5c54..77cac9122 100644 --- a/subprojects/extensions-app/js/main.js +++ b/subprojects/extensions-app/js/main.js @@ -175,8 +175,8 @@ var ExtensionsWindow = GObject.registerClass({ secondary_text: _('If you remove the extension, you need to return to download it if you want to enable it again'), }); - dialog.add_button(_('Cancel'), Gtk.ResponseType.CANCEL); - dialog.add_button(_('Remove'), Gtk.ResponseType.ACCEPT) + dialog.add_button(_('_Cancel'), Gtk.ResponseType.CANCEL); + dialog.add_button(_('_Remove'), Gtk.ResponseType.ACCEPT) .get_style_context().add_class('destructive-action'); dialog.connect('response', (dlg, response) => {