aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authoreerielili <lionel@les-miquelots.net>2023-06-25 11:39:07 +0000
committerGitHub <noreply@github.com>2023-06-25 13:39:07 +0200
commitda7be50f059e5a1536b58087d5cdb305bf86ef63 (patch)
tree1a9e10a785ae92a6f819a1256561a6b515eb8f96 /main/src
parent4bb0c465fc8f1737a1f2668519a6e0cfbc7bfa0d (diff)
downloaddino-da7be50f059e5a1536b58087d5cdb305bf86ef63.tar.gz
dino-da7be50f059e5a1536b58087d5cdb305bf86ef63.zip
Add a keyboard shortcut to show keyboard shortcuts (#1432)
Add a keyboard shortcut to show keyboard shortcuts - It's Ctrl+?
Diffstat (limited to 'main/src')
-rw-r--r--main/src/ui/application.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala
index 36f08f60..9ee3361a 100644
--- a/main/src/ui/application.vala
+++ b/main/src/ui/application.vala
@@ -10,6 +10,7 @@ public class Dino.Ui.Application : Adw.Application, Dino.Application {
private const string[] KEY_COMBINATION_ADD_CONFERENCE = {"<Ctrl>G", null};
private const string[] KEY_COMBINATION_LOOP_CONVERSATIONS = {"<Ctrl>Tab", null};
private const string[] KEY_COMBINATION_LOOP_CONVERSATIONS_REV = {"<Ctrl><Shift>Tab", null};
+ private const string[] KEY_COMBINATION_SHOW_KEYBOARD_SHORTCUTS = {"<Ctrl>question", null};
private MainWindow window;
public MainWindowController controller;
@@ -206,6 +207,7 @@ public class Dino.Ui.Application : Adw.Application, Dino.Application {
dialog.present();
});
add_action(open_shortcuts_action);
+ set_accels_for_action("app.open_shortcuts", KEY_COMBINATION_SHOW_KEYBOARD_SHORTCUTS);
SimpleAction accept_call_action = new SimpleAction("accept-call", new VariantType.tuple(new VariantType[]{VariantType.INT32, VariantType.INT32}));
accept_call_action.activate.connect((variant) => {