Fix for #518

Add ctrlSpace parameter and set AutoCompleteUniqueMatch appropriately.
Merge pull request #519 from 7sharp9/master

Fix for #518