summaryrefslogtreecommitdiff
path: root/options.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2011-10-23 20:31:12 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2011-10-23 20:31:12 +0300
commit5292cc0aea09b39be626f14e199d765cca896883 (patch)
tree6df00b6bf897a304c0be72972f82e6d39c66ce81 /options.cpp
parentff1a66311d278da49fd5fe39597b3bfdbd668fbd (diff)
fixed ctrl+a
Diffstat (limited to 'options.cpp')
-rwxr-xr-xoptions.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/options.cpp b/options.cpp
index 2535c83..3fffe3a 100755
--- a/options.cpp
+++ b/options.cpp
@@ -713,7 +713,6 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP
SetDlgItemText(hwndDlg, IDC_ENABLE_ENCRYPTION, TranslateW(_T("Turn on encryption")));
CheckDlgButton(hwndDlg, IDC_ENABLE_ENCRYPTION, 1);
}
-// RegisterHotKey(hwndDlg, 1, MOD_CONTROL | MOD_NOREPEAT, 0x43); //ctrl+c
RegisterHotKey(hwndDlg, 2, MOD_CONTROL | MOD_NOREPEAT, 0x41);
if(hcnt)
{
@@ -1297,10 +1296,10 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP
DBWriteContactSettingDword(NULL, szGPGModuleName, "LoadKeyWindowY", load_key_rect.top);
}
break;
- case WM_KEYDOWN:
+ case WM_HOTKEY:
{
- if(wParam == 'A' && GetKeyState(VK_CONTROL))
- SendMessage(GetWindow(hwndDlg, IDC_PUBLIC_KEY_EDIT), EM_SETSEL, 0, -1);
+ if(wParam == 2)
+ PostMessage(GetDlgItem(hwndDlg, IDC_PUBLIC_KEY_EDIT), EM_SETSEL, 0, -1);
}
break;
}