summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker/spellchecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SpellChecker/spellchecker.cpp')
-rw-r--r--plugins/SpellChecker/spellchecker.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/plugins/SpellChecker/spellchecker.cpp b/plugins/SpellChecker/spellchecker.cpp
index c121b57cda..348e15a51c 100644
--- a/plugins/SpellChecker/spellchecker.cpp
+++ b/plugins/SpellChecker/spellchecker.cpp
@@ -373,18 +373,14 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam)
}
}
- if (ServiceExists(MS_HOTKEY_REGISTER))
- {
- HOTKEYDESC hkd = {0};
- hkd.cbSize = sizeof(hkd);
- hkd.pszName = "Spell Checker/Toggle";
- hkd.ptszSection = LPGENT("Spell Checker");
- hkd.ptszDescription = LPGENT("Enable/disable spell checker");
- hkd.dwFlags = HKD_TCHAR;
-// hkd.DefHotKey = HOTKEYCODE(HOTKEYF_SHIFT|HOTKEYF_ALT, 'S');
- hkd.lParam = HOTKEY_ACTION_TOGGLE;
- CallService(MS_HOTKEY_REGISTER, 0, (LPARAM) &hkd);
- }
+ HOTKEYDESC hkd = {0};
+ hkd.cbSize = sizeof(hkd);
+ hkd.pszName = "Spell Checker/Toggle";
+ hkd.pszSection = LPGEN("Spell Checker");
+ hkd.pszDescription = LPGEN("Enable/disable spell checker");
+ hkd.DefHotKey = HOTKEYCODE(HOTKEYF_SHIFT|HOTKEYF_ALT, 'S');
+ hkd.lParam = HOTKEY_ACTION_TOGGLE;
+ Hotkey_Register( &hkd);
loaded = TRUE;