I'm experimenting. I want to be able to deselect a selected row on a mode.selection: single table.
If I use Configure Events ... > onRowDoubleClick,
def runAction(self, event):
self.props.selection.selectedColumn = None
self.props.selection.selectedRow = None
it works.
If I try to use Ctrl-click rather than double-click I use onRowClick,
def runAction(self, event):
if event.ctrlKey:
self.props.selection.selectedColumn = None
self.props.selection.selectedRow = None
but get an error:
AttributeError: 'com.inductiveautomation.ignition.common.script.ada' object has no attribute 'ctrlKey'
Can anyone spot the grand flaw in my approach?
Many thanks!