apply escape action to the current page only

This commit is contained in:
yggverse 2024-12-26 20:55:02 +02:00
parent 04a34c91ca
commit 3fda9c851a
5 changed files with 75 additions and 14 deletions

View file

@ -70,8 +70,8 @@ impl Browser {
action.escape.connect_activate({
let widget = widget.clone();
let window = window.clone();
move || {
window.tab.escape(None); // current tab
move |tab_item_id| {
window.escape(tab_item_id);
widget.application_window.set_focus(gtk::Window::NONE);
}
});