From 9398a835cd859c047c840d8069ad03dc6ce97343 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 10 Nov 2024 02:45:02 +0200 Subject: [PATCH] fix accel keys --- src/action.rs | 4 ++-- src/app.rs | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/action.rs b/src/action.rs index ef01cff2..9fbd4da6 100644 --- a/src/action.rs +++ b/src/action.rs @@ -10,8 +10,8 @@ pub const APP_BROWSER_WIDGET_ABOUT: (&str, &str, Option<&VariantTy>) = (APP_BROWSER_WIDGET, "about", None); pub const APP_BROWSER_WIDGET_CLOSE: (&str, &str, Option<&VariantTy>, &[&str]) = - (APP_BROWSER_WIDGET, "close", None, &["i"]); + (APP_BROWSER_WIDGET, "close", None, &["Escape"]); // group | action | variant | accels pub const APP_BROWSER_WIDGET_DEBUG: (&str, &str, Option<&VariantTy>, &[&str]) = - (APP_BROWSER_WIDGET, "debug", None, &["q"]); + (APP_BROWSER_WIDGET, "debug", None, &["i"]); diff --git a/src/app.rs b/src/app.rs index 15dedde9..dacc7157 100644 --- a/src/app.rs +++ b/src/app.rs @@ -185,10 +185,6 @@ impl App { (gformat!("{group}.{action}"), accels) }, // @TODO - ( - gformat!("win.{}", browser.action().quit().name()), - &["Escape"], - ), ( gformat!("win.{}", browser.action().update().name()), &["u"], @@ -209,6 +205,7 @@ impl App { (gformat!("win.{}", action_page_home.name()), &["h"]), (gformat!("win.{}", action_page_new.name()), &["t"]), (gformat!("win.{}", action_page_pin.name()), &["p"]), + // @TODO page close missed ] { gobject.set_accels_for_action(detailed_action_name, &accels); }