From cca9ea061e33091725ff55232e4f967857e104ff Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 24 Sep 2024 22:26:30 +0300 Subject: [PATCH] add new accels, change Ctrl to Primary --- src/main.rs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index c04a36bb..004fe627 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,11 +13,16 @@ fn main() -> glib::ExitCode { let app = Application::builder().application_id(APP_ID).build(); // Init accels - app.set_accels_for_action("win.tab_append", &["t"]); - app.set_accels_for_action("win.tab_pin", &["p"]); - app.set_accels_for_action("win.tab_close", &["q"]); - app.set_accels_for_action("win.debug", &["i"]); - app.set_accels_for_action("win.quit", &["Escape"]); + app.set_accels_for_action("win.tab_append", &["t"]); + app.set_accels_for_action("win.tab_pin", &["p"]); + app.set_accels_for_action("win.tab_close", &["q"]); + app.set_accels_for_action("win.tab_page_base", &["h"]); + app.set_accels_for_action("win.tab_page_history_back", &["Left"]); + app.set_accels_for_action("win.tab_page_history_forward", &["Right"]); + app.set_accels_for_action("win.tab_page_reload", &["r"]); + app.set_accels_for_action("win.tab_page_bookmark", &["b"]); + app.set_accels_for_action("win.debug", &["i"]); + app.set_accels_for_action("win.quit", &["Escape"]); // Create new window app.connect_activate({