lcl: don't handle menu shortcuts in the csDesigning state

git-svn-id: trunk@21814 -
This commit is contained in:
paul 2009-09-22 02:36:10 +00:00
parent 90f683e8be
commit 10df6e55fe

View File

@ -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