mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
remove Escape accels from window actions as blocking dialog windows, replace it with local EventControllerKey implementation, that depends of active focus
This commit is contained in:
parent
4a81297ef1
commit
d469499d46
10 changed files with 37 additions and 68 deletions
|
|
@ -3,7 +3,7 @@ mod client;
|
|||
mod database;
|
||||
mod page;
|
||||
|
||||
use super::{Action as TabAction, BrowserAction, WindowAction};
|
||||
use super::{Action as TabAction, WindowAction};
|
||||
use crate::Profile;
|
||||
use action::Action;
|
||||
use adw::TabPage;
|
||||
|
|
@ -33,11 +33,7 @@ impl Item {
|
|||
pub fn build(
|
||||
(tab_page, target_child): (&TabPage, &Box),
|
||||
profile: &Arc<Profile>,
|
||||
(browser_action, window_action, tab_action): (
|
||||
&Rc<BrowserAction>,
|
||||
&Rc<WindowAction>,
|
||||
&Rc<TabAction>,
|
||||
),
|
||||
(window_action, tab_action): (&Rc<WindowAction>, &Rc<TabAction>),
|
||||
request: Option<&str>,
|
||||
is_load: bool,
|
||||
) -> Self {
|
||||
|
|
@ -59,7 +55,7 @@ impl Item {
|
|||
// Create new `Page` implementation for `TabPage`
|
||||
let page = Rc::new(Page::build(
|
||||
profile,
|
||||
(browser_action, window_action, tab_action, &action),
|
||||
(window_action, tab_action, &action),
|
||||
tab_page,
|
||||
));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue