Proof of concept implementation for delete-surrounding-text.

The QInput method for committing text can be used to replace a region of
text by an empty string, effectively allowing us to delete text.