mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 20:00:47 +02:00
cocoa: mouse handling events for text edit fields
git-svn-id: trunk@58559 -
This commit is contained in:
parent
6fffb8a648
commit
4563d0109f
@ -550,9 +550,10 @@ procedure TCocoaTextField.mouseDown(event: NSEvent);
|
||||
begin
|
||||
if Assigned(callback) and not callback.MouseUpDownEvent(event) then
|
||||
begin
|
||||
writeln('mouse down');
|
||||
inherited mouseDown(event);
|
||||
writeln('mouse down-post');
|
||||
// the text selection is handled withing mouseDown
|
||||
if Assigned(callback) then
|
||||
callback.MouseUpDownEvent(event, True);
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -560,9 +561,7 @@ procedure TCocoaTextField.mouseUp(event: NSEvent);
|
||||
begin
|
||||
if Assigned(callback) and not callback.MouseUpDownEvent(event) then
|
||||
begin
|
||||
writeln('mouse up');
|
||||
inherited mouseUp(event);
|
||||
writeln('mouse up-post');
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -819,7 +818,12 @@ end;
|
||||
procedure TCocoaSecureTextField.mouseDown(event: NSEvent);
|
||||
begin
|
||||
if Assigned(callback) and not callback.MouseUpDownEvent(event) then
|
||||
begin
|
||||
inherited mouseDown(event);
|
||||
|
||||
if Assigned(callback) then
|
||||
callback.MouseUpDownEvent(event, True);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCocoaSecureTextField.mouseUp(event: NSEvent);
|
||||
|
Loading…
Reference in New Issue
Block a user