mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 09:59:20 +02:00
Qt: do not propagate keyrelease event as action trigger. issue #22737
git-svn-id: trunk@38520 -
This commit is contained in:
parent
eb63241bf4
commit
a3eea5f52e
@ -2902,6 +2902,7 @@ begin
|
|||||||
if (Modifiers = QtAltModifier) then
|
if (Modifiers = QtAltModifier) then
|
||||||
begin
|
begin
|
||||||
if (QApplication_activeModalWidget() = nil) and
|
if (QApplication_activeModalWidget() = nil) and
|
||||||
|
(QEvent_type(Event) <> QEventKeyRelease) and
|
||||||
QtWidgetSet.ShortcutInGlobalActions('Alt+'+Text, GlobalAction) then
|
QtWidgetSet.ShortcutInGlobalActions('Alt+'+Text, GlobalAction) then
|
||||||
begin
|
begin
|
||||||
QtWidgetSet.TriggerGlobalAction(GlobalAction);
|
QtWidgetSet.TriggerGlobalAction(GlobalAction);
|
||||||
|
Loading…
Reference in New Issue
Block a user