mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-14 12:48:27 +10:00
Various single-click option fixes
Fixed single-click option ignoring split arrows Fixed Apps folder being clickable
This commit is contained in:
committed by
Ibuprophen
parent
8031739110
commit
64259f73e8
@@ -6808,7 +6808,7 @@ LRESULT CMenuContainer::OnLButtonDblClick( UINT uMsg, WPARAM wParam, LPARAM lPar
|
|||||||
ClientToScreen(&pt);
|
ClientToScreen(&pt);
|
||||||
if (s_bWin7Style && item.id==MENU_PROGRAMS) // only single clicks for All Programs
|
if (s_bWin7Style && item.id==MENU_PROGRAMS) // only single clicks for All Programs
|
||||||
OnLButtonDown(WM_LBUTTONDOWN,wParam,lParam,bHandled);
|
OnLButtonDown(WM_LBUTTONDOWN,wParam,lParam,bHandled);
|
||||||
else if (!bArrow) // ignore double-click on the split arrow
|
else if (!bArrow && item.id!=MENU_APPS) // ignore double-click on the split arrow and Apps folder
|
||||||
ActivateItem(index,ACTIVATE_EXECUTE,&pt);
|
ActivateItem(index,ACTIVATE_EXECUTE,&pt);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -6832,7 +6832,7 @@ LRESULT CMenuContainer::OnLButtonUp( UINT uMsg, WPARAM wParam, LPARAM lParam, BO
|
|||||||
const MenuItem &item=m_Items[index];
|
const MenuItem &item=m_Items[index];
|
||||||
POINT pt2=pt;
|
POINT pt2=pt;
|
||||||
ClientToScreen(&pt2);
|
ClientToScreen(&pt2);
|
||||||
if (!item.bFolder || (s_bSingleClickFolders && item.id!=MENU_PROGRAMS)) // never open All Programs link with single click
|
if (!item.bFolder || (s_bSingleClickFolders && item.id!=MENU_PROGRAMS && item.id!=MENU_APPS && !bArrow)) // never open All Programs, Apps folder, or jumplists with single click
|
||||||
{
|
{
|
||||||
if (item.jumpIndex>=0 && m_bHotArrow)
|
if (item.jumpIndex>=0 && m_bHotArrow)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user