aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-02-05 20:44:57 +0100
committerfiaxh <git@lightrise.org>2019-02-05 20:44:57 +0100
commit864196d2acef3db047160b9da5803805067276c3 (patch)
treed27aadb46501361ecba7a3586de661d54768f92c
parent5a7ffbc1870aeee52fed3c457817010b608e1e52 (diff)
downloaddino-864196d2acef3db047160b9da5803805067276c3.tar.gz
dino-864196d2acef3db047160b9da5803805067276c3.zip
Add keyboard shortcuts: CTRL+T (Start Conversation), CTRL+G (Join Channel)
-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 22c3256f..e63caff8 100644
--- a/main/src/ui/application.vala
+++ b/main/src/ui/application.vala
@@ -121,6 +121,7 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application {
add_chat_dialog.present();
});
add_action(contacts_action);
+ set_accels_for_action("app.add_chat", new string[]{"<Ctrl>T"});
SimpleAction conference_action = new SimpleAction("add_conference", null);
conference_action.activate.connect(() => {
@@ -130,6 +131,7 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application {
add_conference_dialog.present();
});
add_action(conference_action);
+ set_accels_for_action("app.add_conference", new string[]{"<Ctrl>G"});
}
private void show_accounts_window() {