mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-01 03:49:22 +02:00
Cocoa: improve init in TCocoaFullControlEdit
This commit is contained in:
parent
168de1d7fb
commit
ce91d6cb54
@ -80,6 +80,8 @@ type
|
||||
imeHandler: ICocoaIMEControl;
|
||||
lwHandler: ICocoaLookupWord;
|
||||
public
|
||||
function initWithFrame(frameRect: NSRect): id; override;
|
||||
|
||||
procedure keyDown(theEvent: NSEvent); override;
|
||||
procedure mouseDown(event: NSEvent); override;
|
||||
procedure mouseUp(event: NSEvent); override;
|
||||
@ -135,6 +137,12 @@ end;
|
||||
|
||||
{ TCocoaFullControlEdit }
|
||||
|
||||
function TCocoaFullControlEdit.initWithFrame(frameRect: NSRect): id;
|
||||
begin
|
||||
Result:=inherited initWithFrame(frameRect);
|
||||
self.unmarkText;
|
||||
end;
|
||||
|
||||
{
|
||||
for IME Key Down:
|
||||
Key step for IME (such as Chinese/Japanese/Korean and DeadKeys)
|
||||
|
@ -2001,7 +2001,6 @@ begin
|
||||
lcl := TLCLFullControlEditCallback.Create(ctrl, AWinControl);
|
||||
TCocoaFullControlEdit(ctrl).imeHandler:= imeHandler;
|
||||
TCocoaFullControlEdit(ctrl).lwHandler:= getControlLWHandler(AWinControl);
|
||||
TCocoaFullControlEdit(ctrl).unmarkText;
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user