Browse Source

draft current tab activation on middle button pressed

CPP-GTK4
yggverse 3 months ago
parent
commit
4200dd2368
  1. 11
      src/app/browser/main/tab/label.cpp

11
src/app/browser/main/tab/label.cpp

@ -88,9 +88,16 @@ Label::Label( @@ -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();
}
}
);

Loading…
Cancel
Save