Fixes bug with shortcuts enabled when writing display name.

And also when writing in a text field of a prompt.