How to prevent shortcuts from firing when form is not active

Posted by Erick Sasse on Stack Overflow See other posts from Stack Overflow or by Erick Sasse
Published on 2010-05-05T15:23:24Z Indexed on 2010/05/05 15:28 UTC
Read the original article Hit count: 298

Filed under:

I open forms inside tabs of a page control. These forms may contain actions with shortcuts. And I want these shortcuts to be fired only when the tab that contain this form is active.

I tried to override form's IsShortCut but it's not called. Form's OnShortCut is not called either.

I would like to avoid putting code on each action to check this.

I'm using Delphi 2010.

© Stack Overflow or respective owner

Related posts about delphi