mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
fix accel keys
This commit is contained in:
parent
9e481f78ce
commit
9398a835cd
@ -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"]);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user