summaryrefslogtreecommitdiff
path: root/plugins/Nudge/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-07-30 21:58:21 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-07-30 21:58:21 +0300
commit4cced832c6a4331bdbf8d6e4e80e96b040286686 (patch)
tree88e791837089566cf48ed980f92e8828b3403acc /plugins/Nudge/src/main.cpp
parentfbdfd82d0cf0975b80a2afa5eda141c4940ada9d (diff)
nudge button's hotkey moved to the Nudge plugin
Diffstat (limited to 'plugins/Nudge/src/main.cpp')
-rw-r--r--plugins/Nudge/src/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Nudge/src/main.cpp b/plugins/Nudge/src/main.cpp
index 721eb3e520..d0f6943aed 100644
--- a/plugins/Nudge/src/main.cpp
+++ b/plugins/Nudge/src/main.cpp
@@ -248,6 +248,9 @@ static int TabsrmmButtonPressed(WPARAM wParam, LPARAM lParam)
static int TabsrmmButtonInit(WPARAM, LPARAM)
{
+ HOTKEYDESC hkd = { "srmm_nudge", LPGEN("Send nudge"), BB_HK_SECTION, 0, HOTKEYCODE(HOTKEYF_CONTROL, 'N'), LPARAM(hInst) };
+ Hotkey_Register(&hkd);
+
BBButton bbd = {};
bbd.pszModuleName = "Nudge";
bbd.pwszTooltip = LPGENW("Send Nudge");
@@ -255,8 +258,8 @@ static int TabsrmmButtonInit(WPARAM, LPARAM)
bbd.bbbFlags = BBBF_ISIMBUTTON | BBBF_CANBEHIDDEN;
bbd.hIcon = iconList[0].hIcolib;
bbd.dwButtonID = 6000;
+ bbd.pszHotkey = hkd.pszName;
Srmm_AddButton(&bbd);
-
return 0;
}