How do I make my accelerators apply only when used in the main window and not when the user is using a modeless dialog?

1 · Raymond Chen · Aug. 7, 2020, 2:40 p.m.
A customer had a main window and defined some keyboard accelerators for it. One of the accelerators calls up a modeless dialog box. The problem is that even when focus was in the modeless dialog box, the keyboard accelerators for the main window were still active. The post How do I make my accelerators apply only when used in the main window and not when the user is using a modeless dialog? appeared first on The Old New Thing....