Added possibility to double-click in type list

When the choose type dialog is shown, it's natural to try to double-click on the item we wish to select and expect the dialog to choose it and close. 

This PR implements this functionality.