mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 16:40:32 +02:00
cocoa: adding keyUp handler for cocoa ComboBox
git-svn-id: trunk@58591 -
This commit is contained in:
parent
ba497c60ac
commit
dacdf78926
@ -207,6 +207,7 @@ type
|
||||
procedure comboBoxSelectionDidChange(notification: NSNotification); message 'comboBoxSelectionDidChange:';
|
||||
procedure comboBoxSelectionIsChanging(notification: NSNotification); message 'comboBoxSelectionIsChanging:';
|
||||
//
|
||||
procedure keyUp(event: NSEvent); override;
|
||||
function lclIsHandle: Boolean; override;
|
||||
procedure setStringValue(avalue: NSString); override;
|
||||
// mouse
|
||||
@ -1071,6 +1072,15 @@ begin
|
||||
callback.ComboBoxSelectionIsChanging;
|
||||
end;
|
||||
|
||||
procedure TCocoaComboBox.keyUp(event: NSEvent);
|
||||
begin
|
||||
if Assigned(callback) then
|
||||
begin
|
||||
callback.KeyEvent(event);
|
||||
end;
|
||||
inherited keyUp(event);
|
||||
end;
|
||||
|
||||
function TCocoaComboBox.acceptsFirstMouse(event: NSEvent): Boolean;
|
||||
begin
|
||||
Result:=true;
|
||||
|
Loading…
Reference in New Issue
Block a user