Skip to content

Commit

Permalink
Доработка для RegisterHotKey() - используем только для комбинаций с н…
Browse files Browse the repository at this point in the history
…е нулевым virtual-key code. Это должно избавить от ложных срабатываний.
  • Loading branch information
Aleksoid1978 committed Mar 12, 2024
1 parent 70aa559 commit 5367e0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/apps/mplayerc/mplayerc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,10 @@ void CMPlayerCApp::RegisterHotkeys()
if (m_s.bGlobalMedia) {
for (const auto& wc : m_s.wmcmds) {
if (wc.appcmd != 0) {
RegisterHotKey(m_pMainWnd->m_hWnd, wc.appcmd, 0, GetVKFromAppCommand(wc.appcmd));
UINT vkappcmd = GetVKFromAppCommand(wc.appcmd);
if (vkappcmd > 0) {
RegisterHotKey(m_pMainWnd->m_hWnd, wc.appcmd, 0, vkappcmd);
}
}
}
}
Expand Down

0 comments on commit 5367e0e

Please sign in to comment.