mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 22:00:20 +02:00
lcl: put TDBEdit in edit state at entry for widgetsets that does not implement clipboard action. Bug #20394
git-svn-id: trunk@33035 -
This commit is contained in:
parent
009dc8645c
commit
f45d421293
@ -1289,6 +1289,9 @@ procedure Register;
|
||||
|
||||
implementation
|
||||
|
||||
uses
|
||||
InterfaceBase;
|
||||
|
||||
var
|
||||
FieldClasses: TFpList;
|
||||
|
||||
|
@ -208,7 +208,11 @@ end;
|
||||
procedure TDBEdit.WMSetFocus(var Message: TLMSetFocus);
|
||||
begin
|
||||
inherited WMSetFocus(Message);
|
||||
FDataLink.Reset;
|
||||
// some widgetsets do not notify clipboard actions properly. Put at edit state at entry
|
||||
if WidgetSet.GetLCLCapability(lcReceivesLMClearCutCopyPasteReliably) = LCL_CAPABILITY_YES then
|
||||
FDataLink.Reset
|
||||
else
|
||||
FDataLink.Edit;
|
||||
end;
|
||||
|
||||
procedure TDBEdit.WMKillFocus(var Message: TLMKillFocus);
|
||||
|
Loading…
Reference in New Issue
Block a user