Power Table - un select row

In a regular table, pressing escape will set the selected row to -1.

Can similar functionality be achieved on a power table?

In the Event Types section of Ignition help, it looks like you can only use keyCode (like escape) on keyPressed and keyReleased events; these aren’t available on the Power Table but they are on the regular table.

You can add a custom keystroke handler to the PowerTable from within its initialize() extension method:

def initialize(self): from javax.swing import AbstractAction, JComponent, KeyStroke class MyAction(AbstractAction): def actionPerformed(self, event): event.source.selectedRow = -1 a = MyAction() k = KeyStroke.getKeyStroke("ESCAPE") self.registerKeyboardAction(a, k, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)

I have made a feature request for our developers to look over, because we should be able to achieve similar functionality to the regular table.

Thanks Phil and Paolo!