Вверх ↑
Разработчик
Ответов: 26066
Рейтинг: 2120
#1: 2017-02-16 19:21:51 ЛС | профиль | цитата
Если в системе уже кем-то используется данное сочетание, то компонент не может его использовать, тк используется API-функция RegisterHotKey -- https://msdn.microsoft.com/en-us/library/windows/desktop/ms646309(v=vs.85).aspx

Remarks

When a key is pressed, the system looks for a match against all hot keys. Upon finding a match, the system posts the WM_HOTKEY message to the message queue of the window with which the hot key is associated. If the hot key is not associated with a window, then the WM_HOTKEY message is posted to the thread associated with the hot key.
This function cannot associate a hot key with a window created by another thread.
RegisterHotKey fails if the keystrokes specified for the hot key have already been registered by another hot key.
If a hot key already exists with the same hWnd and id parameters, it is maintained along with the new hot key. The application must explicitly call UnregisterHotKey to unregister the old hot key.

карма: 22

0
Редактировалось 1 раз(а), последний 2017-02-16 19:29:24