From ab8a8e3a64458b4c57059b53b84ce4622a48d76d Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 8 Sep 2024 18:08:54 +0300 Subject: [PATCH] add active tab close accel, make disabled by default --- src/app/browser.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app/browser.cpp b/src/app/browser.cpp index 9eef1416..a386eaa2 100644 --- a/src/app/browser.cpp +++ b/src/app/browser.cpp @@ -59,6 +59,15 @@ Browser::Browser( } ); + ACTION__MAIN_TAB_CLOSE_ACTIVE->set_enabled( + false + ); + + APP->set_accel_for_action( + "win.main_tab_close_active", + "Escape" + ); + add_action( "main_tab_close_left", [this]