Skip to content

Commit

Permalink
directvt#396 Allow set multifocus using Ctrl+LeftClick on taskbar
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sdn-o committed Sep 15, 2023
1 parent 5baa33c commit 76c6805
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/netxs/apps/desk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ namespace netxs::app::desk
&& zpos_state != zpos::hidden // not minimized,
&& pro::focus::test(window, gear)) // and focused.
{
window.SIGNAL(tier::release, e2::form::layout::minimize, gear);
if (gear.meta(hids::anyCtrl)) pro::focus::off(data_src, gear.id); // Remove focus if Ctrl pressed.
else window.SIGNAL(tier::release, e2::form::layout::minimize, gear);
}
else
{
Expand All @@ -95,7 +96,8 @@ namespace netxs::app::desk
{
window.SIGNAL(tier::release, e2::form::layout::minimize, gear);
}
else pro::focus::set(data_src, gear.id, pro::focus::solo::on, pro::focus::flip::off);
else pro::focus::set(data_src, gear.id, gear.meta(hids::anyCtrl) ? pro::focus::solo::off
: pro::focus::solo::on, pro::focus::flip::off);
}
gear.dismiss();
}
Expand Down

0 comments on commit 76c6805

Please sign in to comment.