Click here to Skip to main content
15,936,633 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do I disable an accelerator item for a menu item that I have disabled?

What I have tried:

I have googled nothing useful came out of that.
Richard MacCutchan 16-Jun-24 3:54am    
Please do not repost the same question.

1 solution

You don't disable the accelerator, you disable the menu item. After that it depends on your UI components whether the accelerator is automatically disabled (as the menu item is disabled) or if you should investigate the state of the menu item once the accelerator is triggered.

Have a look at About Keyboard Accelerators - Win32 apps | Microsoft Learn[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900