mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 00:09:26 +02:00
* fix problem with Paste from Menu web bug #2173
This commit is contained in:
parent
dc14489292
commit
30d8d499de
@ -6647,6 +6647,9 @@ begin
|
||||
SelEnd.X:=length(GetDisplayText(SelEnd.Y));
|
||||
end;
|
||||
|
||||
{ we change the CurCommandSet, but only if we are top view }
|
||||
if ((State and sfFocused)<>0) then
|
||||
begin
|
||||
Enable:=((SelStart.X<>SelEnd.X) or (SelStart.Y<>SelEnd.Y)) and (Clipboard<>nil);
|
||||
SetCmdState(ToClipCmds,Enable and (Clipboard<>@Self));
|
||||
SetCmdState(NulClipCmds,Enable);
|
||||
@ -6659,6 +6662,7 @@ begin
|
||||
SetCmdState(UndoCmd,(GetUndoActionCount>0));
|
||||
SetCmdState(RedoCmd,(GetRedoActionCount>0));
|
||||
Message(Application,evBroadcast,cmCommandSetChanged,nil);
|
||||
end;
|
||||
DrawView;
|
||||
end;
|
||||
|
||||
@ -7250,7 +7254,10 @@ end;
|
||||
END.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.39 2002-12-18 01:18:10 pierre
|
||||
Revision 1.40 2003-01-21 11:03:56 pierre
|
||||
* fix problem with Paste from Menu web bug 2173
|
||||
|
||||
Revision 1.39 2002/12/18 01:18:10 pierre
|
||||
+ Cut/Copy/Paste added to TEditorInputLine
|
||||
|
||||
Revision 1.38 2002/12/17 13:48:28 pierre
|
||||
|
Loading…
Reference in New Issue
Block a user