Closed AlexZ005 closed 6 years ago
CapsLock ist not supported as hotkey for multiple reasons (and because of those never will):
This is, after all, not a problem of this library, but a general design choice of the operating systems and thus not easily possible. There might be a way using low-level event-hooks, but thats out of scope for this library, sorry! (Have a look a this StackOverflow Post. It might give you an idea)
I'm closing this as invalid, as I cannot help you in your case.
Cannot use QHotkey hotkey(Qt::Key_CapsLock, Qt::NoModifier, true);
Application Output: QHotkey: Failed to register hotkey. Error: BadAccess (attempt to access private resource denied) QHotkey: Failed to unregister hotkey. Error: BadAccess (attempt to access private resource denied)
Could we use CapsLock as a hotkey, please?