Add an option to only allow tree leaves to be selected.
Add an option to disable deselection of items in the tree.