Unbroke Google Slides support

isObjectSelected() is only for Google Docs.
Send text synchronously to Google Docs

Replaced the asynchronous pasteTransfer with a series of one-character keypresses. Typing is slightly slower and undo aggravatingly goes character by character, but key events are guaranteed to come in the right order and there’s no longer any flashing.