Allow Window Windows command to be assigned a shortcut
Fix #14179, close #14183
This commit is contained in:
parent
cfcf827178
commit
c4c1089231
|
@ -421,6 +421,7 @@ static const WinMenuKeyDefinition winKeyDefs[] =
|
|||
|
||||
{ VK_F5, IDM_EXECUTE, false, false, false, nullptr },
|
||||
|
||||
{ VK_NULL, IDM_WINDOW_WINDOWS, false, false, false, nullptr },
|
||||
{ VK_NULL, IDM_WINDOW_SORT_FN_ASC, false, false, false, TEXT("Sort By Name A to Z") },
|
||||
{ VK_NULL, IDM_WINDOW_SORT_FN_DSC, false, false, false, TEXT("Sort By Name Z to A") },
|
||||
{ VK_NULL, IDM_WINDOW_SORT_FP_ASC, false, false, false, TEXT("Sort By Path A to Z") },
|
||||
|
|
|
@ -1228,9 +1228,9 @@ void CommandShortcut::setCategoryFromMenu(HMENU hMenu)
|
|||
{
|
||||
NativeLangSpeaker* pNativeSpeaker = NppParameters::getInstance().getNativeLangSpeaker();
|
||||
|
||||
if ( _id >= IDM_WINDOW_SORT_FN_ASC and _id <= IDM_WINDOW_SORT_FS_DSC)
|
||||
if (_id >= IDM_WINDOW_WINDOWS && _id <= IDM_WINDOW_SORT_FS_DSC)
|
||||
pNativeSpeaker->getMainMenuEntryName(_category, hMenu, "Window", L"Window");
|
||||
else if ( _id >= IDM_VIEW_GOTO_ANOTHER_VIEW and _id <= IDM_VIEW_LOAD_IN_NEW_INSTANCE)
|
||||
else if ( _id >= IDM_VIEW_GOTO_ANOTHER_VIEW && _id <= IDM_VIEW_LOAD_IN_NEW_INSTANCE)
|
||||
pNativeSpeaker->getMainMenuEntryName(_category, hMenu, "view", L"View");
|
||||
else if (_id == IDM_EDIT_LTR || _id == IDM_EDIT_RTL)
|
||||
pNativeSpeaker->getMainMenuEntryName(_category, hMenu, "view", L"View");
|
||||
|
|
Loading…
Reference in New Issue