summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/proto.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 582b7309c2..3cfec37abb 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -53,12 +53,23 @@ FacebookProto::FacebookProto(const char* proto_name,const TCHAR* username)
HookProtoEvent(ME_IDLE_CHANGED, &FacebookProto::OnIdleChanged, this);
HookProtoEvent(ME_TTB_MODULELOADED, &FacebookProto::OnToolbarInit, this);
+ char module[512];
+ mir_snprintf(module, sizeof(module), "%s/Mind", m_szModuleName);
+
+ HOTKEYDESC hkd = { sizeof(hkd) };
+ hkd.dwFlags = HKD_TCHAR;
+ hkd.ptszDescription = LPGENT("Show Mind Window");
+ hkd.pszName = "ShowMindWnd";
+ hkd.ptszSection = m_tszUserName;
+ hkd.pszService = module;
+ hkd.DefHotKey = HOTKEYCODE(HOTKEYF_ALT|HOTKEYF_EXT, 'F');
+ Hotkey_Register(&hkd);
+
// Create standard network connection
TCHAR descr[512];
NETLIBUSER nlu = {sizeof(nlu)};
nlu.flags = NUF_INCOMING | NUF_OUTGOING | NUF_HTTPCONNS | NUF_TCHAR;
nlu.szSettingsModule = m_szModuleName;
- char module[512];
mir_snprintf(module, SIZEOF(module), "%s", m_szModuleName);
nlu.szSettingsModule = module;
mir_sntprintf(descr, SIZEOF(descr), TranslateT("%s server connection"), m_tszUserName);