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
|
|
@ -7,7 +7,7 @@ use feature::Feature;
|
|||
use gtk::{
|
||||
gio::Cancellable,
|
||||
glib::{Uri, UriFlags},
|
||||
prelude::{ActionExt, CancellableExt},
|
||||
prelude::CancellableExt,
|
||||
};
|
||||
use std::{cell::Cell, rc::Rc, sync::Arc};
|
||||
|
||||
|
|
@ -37,12 +37,11 @@ impl Client {
|
|||
/// Route tab item `request` to protocol driver
|
||||
/// * or `navigation` entry if the value not provided
|
||||
pub fn handle(&self, request: &str, is_snap_history: bool) {
|
||||
self.page.escape();
|
||||
|
||||
// Deprecate page info but keep it data as is
|
||||
self.page.info.borrow_mut().deprecate();
|
||||
|
||||
// Move focus out from navigation entry @TODO
|
||||
self.page.browser_action.escape.activate(None);
|
||||
|
||||
// Initially disable find action
|
||||
self.page
|
||||
.window_action
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue