Close completion popup when a non-character is entered

Fixes issue #9.