FIX: cannot paste text in composer

The refactor introduced in #606 prevents users from pasting text in the composer :unamused: 

This fixes it.