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:
yggverse 2025-03-20 23:55:33 +02:00
parent 4a81297ef1
commit d469499d46
10 changed files with 37 additions and 68 deletions

View file

@ -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