mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +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
|
|
@ -29,7 +29,7 @@ impl Window {
|
|||
let action = Rc::new(Action::new());
|
||||
|
||||
// Init components
|
||||
let tab = Rc::new(Tab::build(profile, (browser_action, &action)));
|
||||
let tab = Rc::new(Tab::build(profile, &action));
|
||||
|
||||
// Init events
|
||||
action.append.connect_activate({
|
||||
|
|
@ -131,9 +131,6 @@ impl Window {
|
|||
}
|
||||
|
||||
// Actions
|
||||
pub fn escape(&self) {
|
||||
self.tab.escape();
|
||||
}
|
||||
|
||||
pub fn clean(&self, transaction: &Transaction, app_browser_id: i64) -> Result<()> {
|
||||
for record in database::select(transaction, app_browser_id)? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue