I have an accelerator set to ID_FILE_SAVE with "ctrl+s" which works fine but when I have an edit box selected and try to do "ctrl+s" nothing happens, there is no beep sound either. I have to click the main window than press the hotkey.
1 2 3 4 5 6 7 8 9 10 11
hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_WIN32_CONTROLS));
while (GetMessage(&msg, NULL, 0, 0))
{
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}