In this function (app designer) I delete a row in a table upon selection using the left button of the mouse, how can I use the right button or another key+mouse combination for selection instead of the left?
Code:
% Cell selection callback: infoTable
function infoTableCellSelection(app, event)
indices = event.Indices;
data = app.infoTable.Data;
row = indices(:,1);
figSelect = uifigure;
figSelect.SelectionType ='alt';
selection = uiconfirm(figSelect,'Delete row?','Confirm Close',...
'Icon','question');
disp(selection);
disp(figSelect.SelectionType);
switch selection
case 'OK'
app.infoTable.Data(row,:) = [];
close(figSelect);
case 'Cancel'
close(figSelect);
return
end
Later in the code:
function createComponents(app)
...
app.infoTable.CellSelectionCallback = createCallbackFcn(app, @infoTableCellSelection, true);