clipboard code cleanup

cleaned up the clipboard code
fixed the ability to paste clipboard contents into a non-editable
textinput
the textinput indicator is now repositioned correctly when pasting
clipboard contents into a multiline textinput