Modified action for TreeView toggle so that if clickTogglesIsExpanded
is set, only the triangle toggles the expansion (otherwise the whole
tree view item does)