fix accel keys

This commit is contained in:
yggverse 2024-11-10 02:45:02 +02:00
parent 9e481f78ce
commit 9398a835cd
2 changed files with 3 additions and 6 deletions

View File

@ -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, &["<Primary>i"]);
(APP_BROWSER_WIDGET, "close", None, &["<Primary>Escape"]);
// group | action | variant | accels
pub const APP_BROWSER_WIDGET_DEBUG: (&str, &str, Option<&VariantTy>, &[&str]) =
(APP_BROWSER_WIDGET, "debug", None, &["<Primary>q"]);
(APP_BROWSER_WIDGET, "debug", None, &["<Primary>i"]);

View File

@ -185,10 +185,6 @@ impl App {
(gformat!("{group}.{action}"), accels)
},
// @TODO
(
gformat!("win.{}", browser.action().quit().name()),
&["<Primary>Escape"],
),
(
gformat!("win.{}", browser.action().update().name()),
&["<Primary>u"],
@ -209,6 +205,7 @@ impl App {
(gformat!("win.{}", action_page_home.name()), &["<Primary>h"]),
(gformat!("win.{}", action_page_new.name()), &["<Primary>t"]),
(gformat!("win.{}", action_page_pin.name()), &["<Primary>p"]),
// @TODO page close missed
] {
gobject.set_accels_for_action(detailed_action_name, &accels);
}