From c68b7c22bd877ba609552de152dbb4ed84230bad Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 6 Oct 2012 10:56:26 +0000 Subject: Added hotkey to show/hide offline users (fixes #89) git-svn-id: http://svn.miranda-ng.org/main/trunk@1791 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_keyboard.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/Clist_modern/src/modern_keyboard.cpp b/plugins/Clist_modern/src/modern_keyboard.cpp index 56f9ed6d2e..2749eab01d 100644 --- a/plugins/Clist_modern/src/modern_keyboard.cpp +++ b/plugins/Clist_modern/src/modern_keyboard.cpp @@ -46,18 +46,26 @@ int InitSkinHotKeys(void) HOTKEYDESC shk = {0}; shk.cbSize = sizeof(shk); + shk.dwFlags = HKD_TCHAR; - shk.pszDescription = LPGEN("Close Miranda"); + shk.ptszDescription = LPGENT("Close Miranda"); shk.pszName = "CloseMiranda"; - shk.pszSection = LPGEN("Main"); + shk.ptszSection = LPGENT("Main"); shk.pszService = "CLIST/HK/CloseMiranda"; Hotkey_Register(&shk); - shk.pszDescription = LPGEN("Restore last status"); + shk.ptszDescription = LPGENT("Restore last status"); shk.pszName = "RestoreLastStatus"; - shk.pszSection = LPGEN("Status"); + shk.ptszSection = LPGENT("Status"); shk.pszService = "CLIST/HK/RestoreStatus"; Hotkey_Register(&shk); + + shk.ptszDescription = LPGENT("Show/Hide Ofline Users"); + shk.pszName = "SjowHideOfflineUsers"; + shk.ptszSection = LPGENT("Main"); + shk.pszService = MS_CLIST_TOGGLEHIDEOFFLINE; + Hotkey_Register(&shk); + return 0; } -- cgit v1.2.3