Skip to content

Commit

Permalink
Define accelerator table in code
Browse files Browse the repository at this point in the history
This is part of some broader work to make accelerators updatable. To do
that, the accelerator text on menu items will need to be dynamically
generated (rather than fixed in the .rc file). That then requires that
items that have multiple accelerators have the "default" accelerator
(the one shown on the menu entry) chosen in a deterministic way.

That isn't going to work with the .rc file, since entries there can be
rearranged incidentally, when adding or updating entries. Additionally,
I'm not sure that LoadAccelerators() makes any guarantees about the
order in which items appear in the loaded table anyway.

Fixed ordering is important, since without it, items that have multiple
accelerators could have different menu accelerator text generated in
different builds. For example, a search can be initiated using either
Ctrl+F or F3. Only one of those shortcuts should appear on the menu and
that choice should be explicit and deterministic.

By defining the accelerators in code, the "default" accelerator can be
set by the order in which accelerators are defined.

This is part of the work for issue #476.
  • Loading branch information
derceg committed Sep 6, 2024
1 parent 7815212 commit fd6de34
Show file tree
Hide file tree
Showing 17 changed files with 220 additions and 154 deletions.
2 changes: 1 addition & 1 deletion Explorer++/Explorer++/AcceleratorHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ std::vector<ACCEL> TableToAcceleratorItems(HACCEL acceleratorTable)
return accelerators;
}

wil::unique_haccel AcceleratorItemsToTable(const std::vector<ACCEL> &accelerators)
wil::unique_haccel AcceleratorItemsToTable(std::span<const ACCEL> accelerators)
{
wil::unique_haccel acceleratorTable(CreateAcceleratorTable(
const_cast<ACCEL *>(accelerators.data()), static_cast<int>(accelerators.size())));
Expand Down
4 changes: 3 additions & 1 deletion Explorer++/Explorer++/AcceleratorHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

#pragma once

#include <span>

class AcceleratorManager;

void UpdateMenuAcceleratorStrings(HMENU menu, const AcceleratorManager *acceleratorManager);
std::wstring BuildAcceleratorString(const ACCEL &accelerator);

std::vector<ACCEL> TableToAcceleratorItems(HACCEL acceleratorTable);
wil::unique_haccel AcceleratorItemsToTable(const std::vector<ACCEL> &accelerators);
wil::unique_haccel AcceleratorItemsToTable(std::span<const ACCEL> accelerators);
9 changes: 4 additions & 5 deletions Explorer++/Explorer++/AcceleratorManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
#include "AcceleratorManager.h"
#include "AcceleratorHelper.h"

AcceleratorManager::AcceleratorManager(wil::unique_haccel acceleratorTable)
AcceleratorManager::AcceleratorManager(std::span<const ACCEL> accelerators)
{
m_acceleratorTable = std::move(acceleratorTable);
m_accelerators = TableToAcceleratorItems(m_acceleratorTable.get());
SetAccelerators(accelerators);
}

HACCEL AcceleratorManager::GetAcceleratorTable() const
Expand All @@ -22,10 +21,10 @@ const std::vector<ACCEL> &AcceleratorManager::GetAccelerators() const
return m_accelerators;
}

void AcceleratorManager::SetAccelerators(const std::vector<ACCEL> &updatedAccelerators)
void AcceleratorManager::SetAccelerators(std::span<const ACCEL> updatedAccelerators)
{
m_acceleratorTable = AcceleratorItemsToTable(updatedAccelerators);
m_accelerators = updatedAccelerators;
m_accelerators = { updatedAccelerators.begin(), updatedAccelerators.end() };
}

std::optional<ACCEL> AcceleratorManager::GetAcceleratorForCommand(WORD command) const
Expand Down
5 changes: 2 additions & 3 deletions Explorer++/Explorer++/AcceleratorManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
class AcceleratorManager
{
public:
// Initializes the accelerators from the provided accelerator table.
AcceleratorManager(wil::unique_haccel acceleratorTable);
AcceleratorManager(std::span<const ACCEL> accelerators);

HACCEL GetAcceleratorTable() const;
const std::vector<ACCEL> &GetAccelerators() const;
void SetAccelerators(const std::vector<ACCEL> &updatedAccelerators);
void SetAccelerators(std::span<const ACCEL> updatedAccelerators);
std::optional<ACCEL> GetAcceleratorForCommand(WORD command) const;

private:
Expand Down
96 changes: 96 additions & 0 deletions Explorer++/Explorer++/DefaultAccelerators.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
// Copyright (C) Explorer++ Project
// SPDX-License-Identifier: GPL-3.0-only
// See LICENSE in the top level directory

#include "stdafx.h"
#include "DefaultAccelerators.h"
#include "AcceleratorManager.h"
#include "MainResource.h"

namespace
{

// Note that the ordering of the items below has some importance. For items that have multiple
// accelerator items defined, the first accelerator that appears will be used as the "default"
// accelerator (i.e. the accelerator used in any associated menu items).
// clang-format off
constexpr ACCEL g_defaultAccelerators[] = {
{ FVIRTKEY | FALT, 'D', IDA_ADDRESSBAR },
{ FVIRTKEY | FCONTROL, 'L', IDA_ADDRESSBAR },
{ FVIRTKEY, VK_F4, IDA_COMBODROPDOWN },
{ FVIRTKEY | FALT, VK_HOME, IDA_HOME },
{ FVIRTKEY | FCONTROL, '9', IDA_LASTTAB },
{ FVIRTKEY | FCONTROL, VK_NEXT, IDA_NEXTTAB },
{ FVIRTKEY | FCONTROL, VK_OEM_6, IDA_NEXTTAB },
{ FVIRTKEY | FCONTROL, VK_TAB, IDA_NEXTTAB },
{ FVIRTKEY, VK_F6, IDA_NEXTWINDOW },
{ FVIRTKEY, VK_TAB, IDA_NEXTWINDOW },
{ FVIRTKEY | FCONTROL, VK_OEM_4, IDA_PREVIOUSTAB },
{ FVIRTKEY | FCONTROL, VK_PRIOR, IDA_PREVIOUSTAB },
{ FVIRTKEY | FCONTROL | FSHIFT, VK_TAB, IDA_PREVIOUSTAB },
{ FVIRTKEY | FSHIFT, VK_F6, IDA_PREVIOUSWINDOW },
{ FVIRTKEY | FSHIFT, VK_TAB, IDA_PREVIOUSWINDOW },
{ FVIRTKEY | FCONTROL, '0', IDA_RESET_TEXT_SIZE },
{ FVIRTKEY | FCONTROL, VK_NUMPAD0, IDA_RESET_TEXT_SIZE },
{ FVIRTKEY | FCONTROL | FSHIFT, 'T', IDA_RESTORE_LAST_TAB },
{ FVIRTKEY | FCONTROL, '1', IDA_TAB1 },
{ FVIRTKEY | FCONTROL, '2', IDA_TAB2 },
{ FVIRTKEY | FCONTROL, '3', IDA_TAB3 },
{ FVIRTKEY | FCONTROL, '4', IDA_TAB4 },
{ FVIRTKEY | FCONTROL, '5', IDA_TAB5 },
{ FVIRTKEY | FCONTROL, '6', IDA_TAB6 },
{ FVIRTKEY | FCONTROL, '7', IDA_TAB7 },
{ FVIRTKEY | FCONTROL, '8', IDA_TAB8 },
{ FVIRTKEY | FCONTROL, 'E', IDA_TAB_DUPLICATETAB },
{ FVIRTKEY | FCONTROL, 'N', IDM_ACTIONS_NEWFOLDER },
{ FVIRTKEY | FCONTROL | FSHIFT, 'D', IDM_BOOKMARKS_BOOKMARK_ALL_TABS },
{ FVIRTKEY | FCONTROL, 'D', IDM_BOOKMARKS_BOOKMARKTHISTAB },
{ FVIRTKEY | FCONTROL, 'B', IDM_BOOKMARKS_MANAGEBOOKMARKS },
{ FVIRTKEY | FCONTROL | FSHIFT, 'C', IDM_EDIT_COPYTOFOLDER },
{ FVIRTKEY | FCONTROL | FSHIFT, 'M', IDM_EDIT_MOVETOFOLDER },
{ FVIRTKEY | FCONTROL | FSHIFT, 'V', IDM_EDIT_PASTESHORTCUT },
{ FVIRTKEY | FCONTROL | FSHIFT, 'N', IDM_EDIT_SELECTNONE },
{ FVIRTKEY | FCONTROL | FALT, 'D', IDM_EDIT_WILDCARDDESELECT },
{ FVIRTKEY | FCONTROL | FALT, 'S', IDM_EDIT_WILDCARDSELECTION },
{ FVIRTKEY | FCONTROL, 'W', IDM_FILE_CLOSETAB },
{ FVIRTKEY | FCONTROL, VK_F4, IDM_FILE_CLOSETAB },
{ FVIRTKEY | FCONTROL | FSHIFT, 'P', IDM_FILE_COPYFOLDERPATH },
{ FVIRTKEY | FSHIFT, VK_DELETE, IDM_FILE_DELETEPERMANENTLY },
{ FVIRTKEY | FCONTROL, 'T', IDM_FILE_NEWTAB },
{ FVIRTKEY | FALT, VK_RETURN, IDM_FILE_PROPERTIES },
{ FVIRTKEY, VK_F2, IDM_FILE_RENAME },
{ FVIRTKEY | FCONTROL, 'G', IDM_FILTER_APPLYFILTER },
{ FVIRTKEY | FCONTROL | FSHIFT, 'F', IDM_FILTER_FILTERRESULTS },
{ FVIRTKEY | FALT, VK_LEFT, IDM_GO_BACK },
{ FVIRTKEY | FALT, VK_RIGHT, IDM_GO_FORWARD },
{ FVIRTKEY | FALT, VK_UP, IDM_GO_UP },
{ FVIRTKEY, VK_F1, IDM_HELP_ONLINE_DOCUMENTATION },
{ FVIRTKEY | FCONTROL, 'F', IDM_TOOLS_SEARCH },
{ FVIRTKEY, VK_F3, IDM_TOOLS_SEARCH },
{ FVIRTKEY | FCONTROL, VK_SUBTRACT, IDM_VIEW_DECREASE_TEXT_SIZE },
{ FVIRTKEY | FCONTROL, VK_OEM_MINUS, IDM_VIEW_DECREASE_TEXT_SIZE },
{ FVIRTKEY | FCONTROL | FSHIFT, '5', IDM_VIEW_DETAILS },
{ FVIRTKEY | FCONTROL | FSHIFT, '0', IDM_VIEW_EXTRALARGEICONS },
{ FVIRTKEY | FCONTROL | FSHIFT, '2', IDM_VIEW_ICONS },
{ FVIRTKEY | FCONTROL, VK_ADD, IDM_VIEW_INCREASE_TEXT_SIZE },
{ FVIRTKEY | FCONTROL, VK_OEM_PLUS, IDM_VIEW_INCREASE_TEXT_SIZE },
{ FVIRTKEY | FCONTROL | FSHIFT, '1', IDM_VIEW_LARGEICONS },
{ FVIRTKEY | FCONTROL | FSHIFT, '4', IDM_VIEW_LIST },
{ FVIRTKEY, VK_F5, IDM_VIEW_REFRESH },
{ FVIRTKEY | FCONTROL, 'R', IDM_VIEW_REFRESH },
{ FVIRTKEY | FCONTROL, 'H', IDM_VIEW_SHOWHIDDENFILES },
{ FVIRTKEY | FCONTROL | FSHIFT, '3', IDM_VIEW_SMALLICONS },
{ FVIRTKEY | FCONTROL | FSHIFT, '8', IDM_VIEW_THUMBNAILS },
{ FVIRTKEY | FCONTROL | FSHIFT, '9', IDM_VIEW_TILES },
{ FVIRTKEY | FCONTROL | FSHIFT, 'A', IDM_WINDOW_SEARCH_TABS },
{ FVIRTKEY | FCONTROL | FSHIFT, '6', IDM_VIEW_EXTRALARGETHUMBNAILS },
{ FVIRTKEY | FCONTROL | FSHIFT, '7', IDM_VIEW_LARGETHUMBNAILS }
};
// clang-format on

}

AcceleratorManager InitializeAcceleratorManager()
{
return { g_defaultAccelerators };
}
10 changes: 10 additions & 0 deletions Explorer++/Explorer++/DefaultAccelerators.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright (C) Explorer++ Project
// SPDX-License-Identifier: GPL-3.0-only
// See LICENSE in the top level directory

#pragma once

class AcceleratorManager;

// Returns an AcceleratorManager instance, initialized with the default set of accelerators.
AcceleratorManager InitializeAcceleratorManager();
2 changes: 2 additions & 0 deletions Explorer++/Explorer++/Explorer++.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,7 @@
<ItemGroup>
<ClCompile Include="AboutDialog.cpp" />
<ClCompile Include="AcceleratorManager.cpp" />
<ClCompile Include="DefaultAccelerators.cpp" />
<ClCompile Include="AdvancedOptionsPage.cpp" />
<ClCompile Include="AppearanceOptionsPage.cpp" />
<ClCompile Include="Application.cpp" />
Expand Down Expand Up @@ -1244,6 +1245,7 @@
<ClInclude Include="Accelerator.h" />
<ClInclude Include="AcceleratorManager.h" />
<ClInclude Include="AcceleratorMappings.h" />
<ClInclude Include="DefaultAccelerators.h" />
<ClInclude Include="AdvancedOptionsPage.h" />
<ClInclude Include="AppearanceOptionsPage.h" />
<ClInclude Include="Application.h" />
Expand Down
57 changes: 33 additions & 24 deletions Explorer++/Explorer++/Explorer++.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,6 @@
<ClCompile Include="Console.cpp">
<Filter>Core</Filter>
</ClCompile>
<ClCompile Include="AcceleratorUpdater.cpp">
<Filter>Core</Filter>
</ClCompile>
<ClCompile Include="AcceleratorHelper.cpp">
<Filter>Core</Filter>
</ClCompile>
<ClCompile Include="MainMenu.cpp">
<Filter>Core</Filter>
</ClCompile>
Expand Down Expand Up @@ -646,9 +640,6 @@
<ClCompile Include="MainMenuSubMenuView.cpp">
<Filter>Core\UI\Views</Filter>
</ClCompile>
<ClCompile Include="AcceleratorManager.cpp">
<Filter>Core</Filter>
</ClCompile>
<ClCompile Include="GlobalHistoryMenu.cpp">
<Filter>Core\UI</Filter>
</ClCompile>
Expand Down Expand Up @@ -682,6 +673,18 @@
<ClCompile Include="Version.cpp">
<Filter>Core</Filter>
</ClCompile>
<ClCompile Include="AcceleratorUpdater.cpp">
<Filter>Core\Accelerators</Filter>
</ClCompile>
<ClCompile Include="DefaultAccelerators.cpp">
<Filter>Core\Accelerators</Filter>
</ClCompile>
<ClCompile Include="AcceleratorManager.cpp">
<Filter>Core\Accelerators</Filter>
</ClCompile>
<ClCompile Include="AcceleratorHelper.cpp">
<Filter>Core\Accelerators</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="Bookmarks\BookmarkHelper.h">
Expand Down Expand Up @@ -822,9 +825,6 @@
<ClInclude Include="Plugins\AcceleratorParser.h">
<Filter>Plugins</Filter>
</ClInclude>
<ClInclude Include="Accelerator.h">
<Filter>Core</Filter>
</ClInclude>
<ClInclude Include="Plugins\PluginCommandManager.h">
<Filter>Plugins</Filter>
</ClInclude>
Expand Down Expand Up @@ -903,15 +903,6 @@
<ClInclude Include="TabBacking.h">
<Filter>Tabs</Filter>
</ClInclude>
<ClInclude Include="AcceleratorMappings.h">
<Filter>Core</Filter>
</ClInclude>
<ClInclude Include="AcceleratorUpdater.h">
<Filter>Core</Filter>
</ClInclude>
<ClInclude Include="AcceleratorHelper.h">
<Filter>Core</Filter>
</ClInclude>
<ClInclude Include="NoTranslationResource.h">
<Filter>Resource Files</Filter>
</ClInclude>
Expand Down Expand Up @@ -1362,9 +1353,6 @@
<ClInclude Include="MainMenuSubMenuView.h">
<Filter>Core\UI\Views</Filter>
</ClInclude>
<ClInclude Include="AcceleratorManager.h">
<Filter>Core</Filter>
</ClInclude>
<ClInclude Include="GlobalHistoryMenu.h">
<Filter>Core\UI</Filter>
</ClInclude>
Expand Down Expand Up @@ -1401,6 +1389,24 @@
<ClInclude Include="Version.h">
<Filter>Core</Filter>
</ClInclude>
<ClInclude Include="AcceleratorUpdater.h">
<Filter>Core\Accelerators</Filter>
</ClInclude>
<ClInclude Include="DefaultAccelerators.h">
<Filter>Core\Accelerators</Filter>
</ClInclude>
<ClInclude Include="AcceleratorMappings.h">
<Filter>Core\Accelerators</Filter>
</ClInclude>
<ClInclude Include="AcceleratorManager.h">
<Filter>Core\Accelerators</Filter>
</ClInclude>
<ClInclude Include="AcceleratorHelper.h">
<Filter>Core\Accelerators</Filter>
</ClInclude>
<ClInclude Include="Accelerator.h">
<Filter>Core\Accelerators</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Explorer++.rc">
Expand Down Expand Up @@ -1557,6 +1563,9 @@
<Filter Include="Data Exchange\Clipboard">
<UniqueIdentifier>{cadaacd3-aced-4afa-8fbf-e334258b9316}</UniqueIdentifier>
</Filter>
<Filter Include="Core\Accelerators">
<UniqueIdentifier>{4a6efb22-1fee-46bd-a375-12e500fe4fda}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<Manifest Include="Explorer++.exe.manifest">
Expand Down
80 changes: 0 additions & 80 deletions Explorer++/Explorer++/Explorer++_NoTranslation.rc
Original file line number Diff line number Diff line change
Expand Up @@ -48,86 +48,6 @@ IDI_DISPLAYWINDOW ICON "res\\Display Window.ico"
IDB_NOPREVIEWAVAILABLE BITMAP "res\\No Preview Available.bmp"


/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//

IDR_MAINACCELERATORS ACCELERATORS
BEGIN
"D", IDA_ADDRESSBAR, VIRTKEY, ALT, NOINVERT
"L", IDA_ADDRESSBAR, VIRTKEY, CONTROL, NOINVERT
VK_F4, IDA_COMBODROPDOWN, VIRTKEY, NOINVERT
VK_HOME, IDA_HOME, VIRTKEY, ALT, NOINVERT
"9", IDA_LASTTAB, VIRTKEY, CONTROL, NOINVERT
VK_NEXT, IDA_NEXTTAB, VIRTKEY, CONTROL, NOINVERT
VK_OEM_6, IDA_NEXTTAB, VIRTKEY, CONTROL, NOINVERT
VK_TAB, IDA_NEXTTAB, VIRTKEY, CONTROL, NOINVERT
VK_F6, IDA_NEXTWINDOW, VIRTKEY, NOINVERT
VK_TAB, IDA_NEXTWINDOW, VIRTKEY, NOINVERT
VK_OEM_4, IDA_PREVIOUSTAB, VIRTKEY, CONTROL, NOINVERT
VK_PRIOR, IDA_PREVIOUSTAB, VIRTKEY, CONTROL, NOINVERT
VK_TAB, IDA_PREVIOUSTAB, VIRTKEY, SHIFT, CONTROL, NOINVERT
VK_F6, IDA_PREVIOUSWINDOW, VIRTKEY, SHIFT, NOINVERT
VK_TAB, IDA_PREVIOUSWINDOW, VIRTKEY, SHIFT, NOINVERT
"0", IDA_RESET_TEXT_SIZE, VIRTKEY, CONTROL, NOINVERT
VK_NUMPAD0, IDA_RESET_TEXT_SIZE, VIRTKEY, CONTROL, NOINVERT
"T", IDA_RESTORE_LAST_TAB, VIRTKEY, SHIFT, CONTROL, NOINVERT
"1", IDA_TAB1, VIRTKEY, CONTROL, NOINVERT
"2", IDA_TAB2, VIRTKEY, CONTROL, NOINVERT
"3", IDA_TAB3, VIRTKEY, CONTROL, NOINVERT
"4", IDA_TAB4, VIRTKEY, CONTROL, NOINVERT
"5", IDA_TAB5, VIRTKEY, CONTROL, NOINVERT
"6", IDA_TAB6, VIRTKEY, CONTROL, NOINVERT
"7", IDA_TAB7, VIRTKEY, CONTROL, NOINVERT
"8", IDA_TAB8, VIRTKEY, CONTROL, NOINVERT
"E", IDA_TAB_DUPLICATETAB, VIRTKEY, CONTROL, NOINVERT
"N", IDM_ACTIONS_NEWFOLDER, VIRTKEY, CONTROL, NOINVERT
"D", IDM_BOOKMARKS_BOOKMARK_ALL_TABS, VIRTKEY, SHIFT, CONTROL, NOINVERT
"D", IDM_BOOKMARKS_BOOKMARKTHISTAB, VIRTKEY, CONTROL, NOINVERT
"B", IDM_BOOKMARKS_MANAGEBOOKMARKS, VIRTKEY, CONTROL, NOINVERT
"C", IDM_EDIT_COPYTOFOLDER, VIRTKEY, SHIFT, CONTROL, NOINVERT
"M", IDM_EDIT_MOVETOFOLDER, VIRTKEY, SHIFT, CONTROL, NOINVERT
"V", IDM_EDIT_PASTESHORTCUT, VIRTKEY, SHIFT, CONTROL, NOINVERT
"N", IDM_EDIT_SELECTNONE, VIRTKEY, SHIFT, CONTROL, NOINVERT
"D", IDM_EDIT_WILDCARDDESELECT, VIRTKEY, CONTROL, ALT, NOINVERT
"S", IDM_EDIT_WILDCARDSELECTION, VIRTKEY, CONTROL, ALT, NOINVERT
VK_F4, IDM_FILE_CLOSETAB, VIRTKEY, CONTROL, NOINVERT
"W", IDM_FILE_CLOSETAB, VIRTKEY, CONTROL, NOINVERT
"P", IDM_FILE_COPYFOLDERPATH, VIRTKEY, SHIFT, CONTROL, NOINVERT
VK_DELETE, IDM_FILE_DELETEPERMANENTLY, VIRTKEY, SHIFT, NOINVERT
"T", IDM_FILE_NEWTAB, VIRTKEY, CONTROL, NOINVERT
VK_RETURN, IDM_FILE_PROPERTIES, VIRTKEY, ALT, NOINVERT
VK_F2, IDM_FILE_RENAME, VIRTKEY, NOINVERT
"G", IDM_FILTER_APPLYFILTER, VIRTKEY, CONTROL, NOINVERT
"F", IDM_FILTER_FILTERRESULTS, VIRTKEY, SHIFT, CONTROL, NOINVERT
VK_LEFT, IDM_GO_BACK, VIRTKEY, ALT, NOINVERT
VK_RIGHT, IDM_GO_FORWARD, VIRTKEY, ALT, NOINVERT
VK_UP, IDM_GO_UP, VIRTKEY, ALT, NOINVERT
VK_F1, IDM_HELP_ONLINE_DOCUMENTATION, VIRTKEY, NOINVERT
"F", IDM_TOOLS_SEARCH, VIRTKEY, CONTROL, NOINVERT
VK_F3, IDM_TOOLS_SEARCH, VIRTKEY, NOINVERT
VK_OEM_MINUS, IDM_VIEW_DECREASE_TEXT_SIZE, VIRTKEY, CONTROL, NOINVERT
VK_SUBTRACT, IDM_VIEW_DECREASE_TEXT_SIZE, VIRTKEY, CONTROL, NOINVERT
"5", IDM_VIEW_DETAILS, VIRTKEY, SHIFT, CONTROL, NOINVERT
"0", IDM_VIEW_EXTRALARGEICONS, VIRTKEY, SHIFT, CONTROL, NOINVERT
"2", IDM_VIEW_ICONS, VIRTKEY, SHIFT, CONTROL, NOINVERT
VK_ADD, IDM_VIEW_INCREASE_TEXT_SIZE, VIRTKEY, CONTROL, NOINVERT
VK_OEM_PLUS, IDM_VIEW_INCREASE_TEXT_SIZE, VIRTKEY, CONTROL, NOINVERT
"1", IDM_VIEW_LARGEICONS, VIRTKEY, SHIFT, CONTROL, NOINVERT
"4", IDM_VIEW_LIST, VIRTKEY, SHIFT, CONTROL, NOINVERT
"R", IDM_VIEW_REFRESH, VIRTKEY, CONTROL, NOINVERT
VK_F5, IDM_VIEW_REFRESH, VIRTKEY, NOINVERT
"H", IDM_VIEW_SHOWHIDDENFILES, VIRTKEY, CONTROL, NOINVERT
"3", IDM_VIEW_SMALLICONS, VIRTKEY, SHIFT, CONTROL, NOINVERT
"8", IDM_VIEW_THUMBNAILS, VIRTKEY, SHIFT, CONTROL, NOINVERT
"9", IDM_VIEW_TILES, VIRTKEY, SHIFT, CONTROL, NOINVERT
"A", IDM_WINDOW_SEARCH_TABS, VIRTKEY, SHIFT, CONTROL, NOINVERT
"6", IDM_VIEW_EXTRALARGETHUMBNAILS, VIRTKEY, SHIFT, CONTROL, NOINVERT
"7", IDM_VIEW_LARGETHUMBNAILS, VIRTKEY, SHIFT, CONTROL, NOINVERT
END


#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
Expand Down
1 change: 0 additions & 1 deletion Explorer++/Explorer++/NoTranslationResource.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//
#define IDI_MAIN 105
#define IDI_DISPLAYWINDOW 106
#define IDR_MAINACCELERATORS 152
#define IDB_NOPREVIEWAVAILABLE 236
#define IDB_CUT_16 250
#define IDB_CUT_WINDOWS_10_16 251
Expand Down
Loading

0 comments on commit fd6de34

Please sign in to comment.