Browse Source

Secondary shortcuts for some actions were added repeatedly

Source commit: 513fc86ffd8b170ef96c75f0d4d8873aa05df1f0
Martin Prikryl 5 years ago
parent
commit
b1339134d2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      source/forms/NonVisual.cpp

+ 2 - 0
source/forms/NonVisual.cpp

@@ -899,8 +899,10 @@ void __fastcall TNonVisualDataModule::CommanderShortcuts()
   RemoteFindFilesAction->ShortCut =
     ExplorerKeyboardShortcuts ? ShortCut(VK_F3, NONE) : ShortCut(VK_F7, ALT);
   // legacy shortcut (can be removed when necessary)
+  NewFileAction->SecondaryShortCuts->Clear();
   NewFileAction->SecondaryShortCuts->Add(ShortCutToText(ShortCut(VK_F4, CTRLSHIFT)));
   // Backward compatibility, can be abandoned, once there's a better use for Ctrl+T
+  ConsoleAction->SecondaryShortCuts->Clear();
   ConsoleAction->SecondaryShortCuts->Add(ShortCutToText(ShortCut(L'T', CTRL)));
 
   CloseApplicationAction->ShortCut = ShortCut(VK_F10, NONE);