cocoa: adding keyUp handler for cocoa ComboBox

git-svn-id: trunk@58591 -
This commit is contained in:
dmitry 2018-07-22 05:26:32 +00:00
parent ba497c60ac
commit dacdf78926

View File

@ -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;