Add an option to configure automatic input blurring

This will fix issue #377 if merged in. This pull request also adds test case for the default behavior of blurring the active element always.