Handle punctuation after completion
It would be nice to handle the common case of
- Completing a word by pressing a button in the bar and then
- Typing a punctuation character (e.g. comma)
Currently this results in the string word ,
. Correct result would be word,
.