Skip to content

Commit 491ad4f

Browse files
committed
from N++: Add new plugin API NPPM_REMOVESHORTCUTBYCMDID to allows plugins to remove unneeded shortcuts Fix #4674, close #4687 Needed for bruderstein#92
1 parent b773ff8 commit 491ad4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

NppPlugin/include/Notepad_plus_msgs.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,11 @@ enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64 };
414414
#define NPPM_DISABLEAUTOUPDATE (NPPMSG + 95) // 2119 in decimal
415415
// VOID NPPM_DISABLEAUTOUPDATE(0, 0)
416416

417+
#define NPPM_REMOVESHORTCUTBYCMDID (NPPMSG + 96) // 2120 in decimal
418+
// BOOL NPPM_REMOVESHORTCUTASSIGNMENT(int cmdID)
419+
// removes the assigned shortcut mapped to cmdID
420+
// returned value : TRUE if function call is successful, otherwise FALSE
421+
417422
#define RUNCOMMAND_USER (WM_USER + 3000)
418423
#define NPPM_GETFULLCURRENTPATH (RUNCOMMAND_USER + FULL_CURRENT_PATH)
419424
#define NPPM_GETCURRENTDIRECTORY (RUNCOMMAND_USER + CURRENT_DIRECTORY)

0 commit comments

Comments
 (0)