mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 01:59:34 +02:00
lcl: don't handle menu shortcuts in the csDesigning state
git-svn-id: trunk@21814 -
This commit is contained in:
parent
90f683e8be
commit
10df6e55fe
@ -241,7 +241,7 @@ begin
|
||||
ShiftState := KeyDataToShiftState(Message.KeyData);
|
||||
Shortcut := Menus.Shortcut(Message.CharCode, ShiftState);
|
||||
Item := FindItem(Shortcut, fkShortcut);
|
||||
Result := Item <> nil;
|
||||
Result := not (csDesigning in ComponentState) and (Item <> nil);
|
||||
//DebugLn(['TMenu.IsShortcut ',dbgsName(Self),' Result=',Result,' Message.CharCode=',Message.CharCode,' ShiftState=',dbgs(ShiftState)]);
|
||||
if Result then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user