From 4200dd2368dd5f6feaa64f74384cae8b0b813cef Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 17 Sep 2024 12:51:39 +0300 Subject: [PATCH] draft current tab activation on middle button pressed --- src/app/browser/main/tab/label.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/app/browser/main/tab/label.cpp b/src/app/browser/main/tab/label.cpp index f2f3d3ae..423eca4d 100644 --- a/src/app/browser/main/tab/label.cpp +++ b/src/app/browser/main/tab/label.cpp @@ -88,9 +88,16 @@ Label::Label( EVENT__BUTTON_MIDDLE->signal_pressed().connect( [this](int n, double x, double y) { - if (!is_pinned) // @TODO match current tab condition + // @TODO activate tab + } + ); + + EVENT__BUTTON_MIDDLE->signal_released().connect( + [this](int n, double x, double y) + { + if (!is_pinned) { - action__tab_close->activate(); + // @TODO action__tab_close->activate(); } } );