summaryrefslogtreecommitdiff
path: root/plugins/Nudge
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
parentfbdfd82d0cf0975b80a2afa5eda141c4940ada9d (diff)
nudge button's hotkey moved to the Nudge plugin
Diffstat (limited to 'plugins/Nudge')
-rw-r--r--plugins/Nudge/src/main.cpp5
-rw-r--r--plugins/Nudge/src/stdafx.h1
2 files changed, 5 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;
}
diff --git a/plugins/Nudge/src/stdafx.h b/plugins/Nudge/src/stdafx.h
index 4ecefe6d34..db45931958 100644
--- a/plugins/Nudge/src/stdafx.h
+++ b/plugins/Nudge/src/stdafx.h
@@ -13,6 +13,7 @@
#include <m_popup.h>
#include <m_message.h>
#include <m_ignore.h>
+#include <m_hotkeys.h>
#include <m_options.h>
#include <m_skin.h>
#include <m_database.h>