How to disable shortcuts when shooting when the form is not active

I open the forms inside the tabs of the page control. These forms may contain label actions. And I want these shortcuts to only start when the tab containing this form is active.

I tried to override the IsShortCut form, but it was not called. The OnShortCut form is also not called.

I would not want to put code for every action to test this.

I am using Delphi 2010.

+3
source share
3 answers

State asSuspended. asNormal. . , .

+3

false, , True, . , .

0

. , . ( TActionList, / , .)

0
source

Source: https://habr.com/ru/post/1744180/


All Articles