bool CommandBySelector(NSControl control, NSTextField field, ObjCRuntime.Selector sel) { switch (sel.Name) { case "insertTab:": // down arrow CommandRaised?.Invoke(this, SearchTextFieldCommand.InsertTab); return(true); case "insertBacktab:": // up arrow CommandRaised?.Invoke(this, SearchTextFieldCommand.InsertBacktab); return(true); } return(false); }
private void OnExecuteClick() { CommandRaised?.Invoke(this, _executeInputField.text); }