Search code examples
c++winapikeyboard-shortcutsaccelerator

Can we use accelerator table to handle multi letter shortcuts like Ctrl + K + C?


I am currently using an accelerator table to handle shortcuts such as Ctrl + A, Alt + B, etc. But I was wondering, is there any possibility I can modify the table to accept multi-letter key combinations, such as Ctrl + K + C?

Using an accelerator table, I could not find a solution. I could add only a single key to the table. Using QT, I think it is possible to handle such complex key sequences, but it is currently not possible for me to use QT.


Solution

  • No, the accelerator system is not able to handle combinations of that form. It can handle multiple alteration keys (CTRL, SHIFT, ALT) along with a single letter, but not multiple letter keys.