OnDoubleClick

The OnDoubleClick event can be implemented by a script add-in to receive notification when the user double-clicks on a file or folder in a tab.

 

Method Name:

OnDoubleClick

Argument Type:

DoubleClickData 

Return Type:

bool or string

Description:

The DoubleClickData.tab property identifies the tab, and the item property identifies the item that has been double-clicked.


You can return two different types from this event:

  • bool: If you return True, the double-click will be cancelled and the file will not be opened. If you return False the double-click will be allowed to continue (this is the default).
  • string: You can return a string to change the function to be performed on the file. For example, you could return the string "Show" to run the internal Show command on the file.